[TRUNK-3499] made some small change i.e. T extends OpenmrsObject