* {@link Batchmgr}s.
* @return A new {@link Batchmgr} implementation.
*/
public static Batchmgr getBatchmgrServiceFromFactory(String serviceFactory) {
Class clazz = null;
BatchmgrFactory factory = null;
try {
clazz = Class.forName(serviceFactory);
factory = (BatchmgrFactory) clazz.newInstance();
return factory.createBatchmgr();
} catch (ClassNotFoundException e) {
e.printStackTrace();
LOG.log(Level.WARNING,
"ClassNotFoundException when loading batchmgr factory class "
+ serviceFactory + " Message: " + e.getMessage());