RESTWS-373: Use Hibernate facility to look up proxy object class

See https://tickets.openmrs.org/browse/RESTWS-373