}
public static WorkflowInstanceRepository getWorkflowInstanceRepositoryFromClassName(
String serviceFactory) {
WorkflowInstanceRepositoryFactory factory = null;
Class clazz = null;
try {
clazz = Class.forName(serviceFactory);
factory = (WorkflowInstanceRepositoryFactory) clazz.newInstance();
return factory.createInstanceRepository();
} catch (ClassNotFoundException e) {
e.printStackTrace();
LOG.log(Level.WARNING, "ClassNotFoundException when "
+ "loading workflow instance repository factory class "
+ serviceFactory + " Message: " + e.getMessage());