* Get an object from the given type.
* @param type : type
* @return an object from an instance of this type or null
*/
private Object getObjectByType(String type) {
InstanceHandler handler = (InstanceHandler) m_manager.getCompositeHandler("org.apache.felix.ipojo.composite.instance.InstanceHandler");
Object pojo = handler.getObjectFromInstance(type);
if (pojo == null) {
m_manager.getFactory().getLogger().log(Logger.ERROR, "An instance object cannot be found for the type : " + type);
}
return pojo;
}