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