public ListenerEndpoint getListenerEndpoint() { final HttpServer local = this.server; if (local != null) { return this.server.getEndpoint(); } throw new IllegalStateException("Server not running"); }