code: private void registerEndpointMBean(String name, EndPointInfoImpl ep) {
          endpointMBeans.put(name, registerMBeanAsService(name, ep));
      }
docs: Register an endpoint MBean and publish it.
  
  @param endpoint