private static MBeanServerBuilder newBuilder(Class<?> builderClass){
  try {
    final Object abuilder=builderClass.newInstance();
    return (MBeanServerBuilder)abuilder;
  }
 catch (  RuntimeException x) {
    throw x;
  }
catch (  Exception x) {
    final String msg="Failed to instantiate a MBeanServerBuilder from " + builderClass + ": "+ x;
    throw new JMRuntimeException(msg,x);
  }
}

private static MBeanServerBuilder newBuilder ( Class < ? > builderClass ) { try { final Object abuilder = builderClass . newInstance ( ) ; return ( MBeanServerBuilder ) abuilder ; } catch ( RuntimeException x ) { throw x ; } catch ( Exception x ) { final String msg = "Failed to instantiate a MBeanServerBuilder from " + builderClass + ": " + x ; throw new JMRuntimeException ( msg , x ) ; } }
creates the initial builder according to the javax . management . builder . initial system property - if specified . if any checked exception needs to be thrown , it is embedded in a jmruntimeexception .
