code: private <T> ServiceRegistration<T> registerMBean(ObjectName on, Class<T> type, T o) {
          Dictionary<String, Object> props = new Hashtable<String, Object>();
          props.put("jmx.objectname", on.toString());
          return context.registerService(type, o, props);
      }
docs: Used to Register an MBean
  
  @param on : The ObjectName registration for the MBean
  @param type : The class type of the MBean being register
  @param o: The MBean
  @return : A service registration that provides access to manage the MBean