* @return The Service value
* @throws Exception for any error
*/
public static Service getServiceProxy(ObjectName objectName, MBeanServer server, boolean includeLifecycle) throws Exception
{
Service service = null;
MBeanInfo info = server.getMBeanInfo(objectName);
MBeanOperationInfo[] opInfo = info.getOperations();
Class<?>[] interfaces = { Service.class };
InvocationHandler handler = new ServiceProxy(objectName, server, opInfo);
if (includeLifecycle == false)