code: @Override
      public JMXConnector newJMXConnector(JMXServiceURL serviceURL, Map<String, ?> environment) throws IOException {
          if (serviceURL == null || environment == null)
              throw new NullPointerException();
          if (!ClientProvider.REST_PROTOCOL.equals(serviceURL.getProtocol()))
              throw new MalformedURLException();
          return new Connector(serviceURL, environment);
      }
docs: /*
  (non-Javadoc)
  
  @see javax.management.remote.JMXConnectorProvider#newJMXConnector(javax.management.remote.JMXServiceURL, java.util.Map)