code: protected Server getServer(MuleAgentConfig pConfig) {
          Server newServer = new Server();
  
          Connector connector = createConnector(newServer);
          if (pConfig.getHost() != null) {
              ClassUtil.applyMethod(connector, "setHost", pConfig.getHost());
          }
          ClassUtil.applyMethod(connector,"setPort",pConfig.getPort());
  
          newServer.setConnectors(new Connector[]{connector});
          return newServer;
      }
docs: Get the agent server for suing it with mule
  
  @param pConfig agent configuration
  @return the server