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