* the new {@link Scheduler}.
* @return A new {@link Scheduler} implementation.
*/
public static Scheduler getSchedulerServiceFromFactory(String serviceFactory) {
Class clazz = null;
SchedulerFactory factory = null;
try {
clazz = Class.forName(serviceFactory);
factory = (SchedulerFactory) clazz.newInstance();
return factory.createScheduler();
} catch (ClassNotFoundException e) {
e.printStackTrace();
LOG.log(Level.WARNING,
"ClassNotFoundException when loading scheduler factory class "
+ serviceFactory + " Message: " + e.getMessage());