code: private Server getServer(MuleAgentConfig pConfig) {
          Server newServer = new Server();
  
          Connector connector = new SelectChannelConnector();
          if (pConfig.getHost() != null) {
              connector.setHost(pConfig.getHost());
          }
          connector.setPort(pConfig.getPort());
          newServer.setConnectors(new Connector[]{connector});
  
          return newServer;
      }
docs: Create a Jetty Server with the agent servlet installed