code: public int getPort() {
  
          if (port == EndpointServerBuilder.DEFAULT_PORT) {
              String sport = System.getenv("PORT_WEB");
              /** Looks up port for Mesoshpere and the like. */
              if (Str.isEmpty(sport)) {
                  sport = System.getenv("PORT0");
              }
              if (Str.isEmpty(sport)) {
                  sport = System.getenv("PORT");
              }
              if (!Str.isEmpty(sport)) {
                  port = Integer.parseInt(sport);
              }
          }
          return port;
      }
docs: Get the actual port to bind to.
  <p>
  Defaults to EndpointServerBuilder.DEFAULT_PORT.
  <p>
  Looks for PORT under PORT_WEB, PORT0, PORT.
  
  @return actual http port to bind to.