Service service = null;
ClassLoader loader = Thread.currentThread().getContextClassLoader();
if (serviceFactory != null && serviceFactory.length() > 0)
{
Class clazz = loader.loadClass(serviceFactory);
ServiceFactory factory = (ServiceFactory) clazz.newInstance();
service = factory.createService(server, objectName);
}
else
{
MBeanInfo info = server.getMBeanInfo(objectName);
MBeanOperationInfo[] opInfo = info.getOperations();