if (!(object instanceof CmisServiceFactory)) {
log.warn("The provided class is not an instance of CmisServiceFactory!");
}
CmisServiceFactory factory = (CmisServiceFactory) object;
// initialize factory instance
Map<String, String> parameters = new HashMap<String, String>();
for (Enumeration<?> e = props.propertyNames(); e.hasMoreElements();) {
String key = (String) e.nextElement();
String value = props.getProperty(key);
parameters.put(key, value);
}
factory.init(parameters);
log.info("Initialized Services Factory: " + factory.getClass().getName());
return factory;
}