upgraded the code to openmrs 1.9.7