Details
Description
EndpointHelper.setReferenceProperties() does not work with OSGiServiceRegistry
setReferenceProperties() is hard-coded to lookup services of type Object.class.
It should use reflection to determine the type that the setter method accepts and then use that type to lookup the reference in the service registry.
At the moment this issue is stopping #bean references in Endpoints from being resolved when using an OSGiServiceRegistry, in OSGi you need to know the class of the service you want before hand.