JobRepositoryFactory factory = null;
try {
clazz = Class.forName(serviceFactory);
factory = (JobRepositoryFactory) clazz.newInstance();
return factory.createRepository();
} catch (ClassNotFoundException e) {
e.printStackTrace();
LOG.log(Level.WARNING,
"ClassNotFoundException when loading job repo factory class "
+ serviceFactory + " Message: " + e.getMessage());