/** * @see org.openmrs.module.webservices.rest.web.resource.api.Converter#getProperty(T, * java.lang.String) */ @Override public Object getProperty(User instance, String propertyName) throws ConversionException { UserAndPassword1_8 userPass = new UserAndPassword1_8(instance); UserResource1_8 userResource = (UserResource1_8) Context.getService(RestService.class).getResourceByName( RestConstants.VERSION_1 + "/user"); return userResource.getProperty(userPass, propertyName); }