TRUNK-3960 - Fix for the order of registering the listeners.
TRUNK-3960 - Fix for the order of registering the listeners.

Bhamni/openmrs-core,Bhamni/openmrs-core,Bhamni/openmrs-core,Bhamni/openmrs-core,Bhamni/openmrs-core