code: private MBeanServerConnection getNetworkConnection() {
          try {
              JMXServiceURL url = new JMXServiceURL(getEndpointConfiguration().getServerUrl());
              String[] creds = {getEndpointConfiguration().getUsername(), getEndpointConfiguration().getPassword()};
              JMXConnector networkConnector = JMXConnectorFactory.connect(url, Collections.singletonMap(JMXConnector.CREDENTIALS, creds));
              connectionId = networkConnector.getConnectionId();
  
              networkConnector.addConnectionNotificationListener(this, null, null);
              return networkConnector.getMBeanServerConnection();
          } catch (IOException e) {
              throw new CitrusRuntimeException("Failed to connect to network MBean server", e);
          }
      }
docs: Establish network connection to remote mBean server.
  @return