* to use to create a {@link JobRepository}.
* @return A new {@link JobRepository} from the given service factory.
*/
public static JobRepository getJobRepositoryFromServiceFactory(String serviceFactory) {
Class clazz = null;
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());