code: public synchronized UndertowServerEngine retrieveHttpServerEngine(int port)
     {
        UndertowServerEngine engine = null;
        synchronized(portMap)
        {
           engine = portMap.get(port);
        }
        return engine;
     }
docs: Retrieve a previously configured HttpServerEngine for the
  given port. If none exists, this call returns null.