code: public Optional<ServerPort> activePort() {
          final Server server = this.server;
          return server != null ? server.activePort() : Optional.empty();
      }
docs: Returns the primary port of the server.
  
  @return the primary {@link ServerPort} if the server is started. {@link Optional#empty()} otherwise.