code: public static MuleAgentHttpServer create(Agent pParent, MuleAgentConfig pConfig) {
          if (ClassUtil.checkForClass("org.mortbay.jetty.Server")) {
              return new MortbayMuleAgentHttpServer(pParent, pConfig);
          } else if (ClassUtil.checkForClass("org.eclipse.jetty.server.ServerConnector")) {
              return new Jetty9MuleAgentHttpServer(pParent, pConfig);
          } else if (ClassUtil.checkForClass("org.eclipse.jetty.server.Server")) {
              return new Jetty7And8MuleAgentHttpServer(pParent, pConfig);
          }
          throw new IllegalStateException("Cannot detect Jetty version (tried 6,7,8,9)");
      }
docs: Create the internal HTTP server.
  Create the Jetty Server of Mortbay packages or Eclipse Foundation packages.
  
  
  @param pParent parent for creating proper exceptions
  @param pConfig configuration of the server
  @return internal HTTP server