code: public Object dispatchRequest(JmxRequest pJmxReq)
              throws InstanceNotFoundException, AttributeNotFoundException, ReflectionException, MBeanException, IOException, NotChangedException {
  
          JsonRequestHandler handler = requestHandlerManager.getRequestHandler(pJmxReq.getType());
          JMXConnector connector = null;
          try {
              connector = createConnector(pJmxReq);
              connector.connect();
              MBeanServerConnection connection = connector.getMBeanServerConnection();
              if (handler.handleAllServersAtOnce(pJmxReq)) {
                  // There is no way to get remotely all MBeanServers ...
                  MBeanServerExecutor manager = new MBeanServerExecutorRemote(connection);
                  return handler.handleRequest(manager, pJmxReq);
              } else {
                  return handler.handleRequest(connection, pJmxReq);
              }
          } finally {
              releaseConnector(connector);
          }
      }
docs: Call a remote connector based on the connection information contained in
  the request.
  
  @param pJmxReq the request to dispatch
  @return result object
  @throws InstanceNotFoundException
  @throws AttributeNotFoundException
  @throws ReflectionException
  @throws MBeanException
  @throws IOException