@ SuppressWarnings ( "unchecked" ) public static Object getMBean ( final Class c , final String name ) throws Throwable { final MBeanServer server = getMbeanServer ( ) ; // return MBeanProxyExt.create(c, name, server); return JMX . newMBeanProxy ( server , new ObjectName ( name ) , c ) ; }
Create a proxy to the given mbean