* @return A newly constructed {@link RepositoryManager} object.
*/
@SuppressWarnings("unchecked")
public static RepositoryManager getRepositoryManagerServiceFromFactory(
String serviceFactory) {
RepositoryManagerFactory factory = null;
Class<RepositoryManagerFactory> clazz = null;
try {
clazz = (Class<RepositoryManagerFactory>) Class.forName(serviceFactory);
factory = clazz.newInstance();
return factory.createRepositoryManager();
} catch (ClassNotFoundException e) {
e.printStackTrace();
LOG.log(Level.WARNING,
"ClassNotFoundException when loading data store factory class "
+ serviceFactory + " Message: " + e.getMessage());