@Override
            public Server apply(BlockingTaskExecutor blockingTaskExecutor) {
                lock.lock();
                try {
                    if (server != null) {
                        return server;
                    }
                    server = new Server(new ArmeriaThreadPool(blockingTaskExecutor));

                    if (dumpAfterStart != null) {
                        server.setDumpAfterStart(dumpAfterStart);
                    }
                    if (dumpBeforeStop != null) {
                        server.setDumpBeforeStop(dumpBeforeStop);
                    }
                    if (stopTimeoutMillis != null) {
                        server.setStopTimeout(stopTimeoutMillis);
                    }

                    if (handler != null) {
                        server.setHandler(handler);
                    }
                    if (requestLog != null) {
                        server.setRequestLog(requestLog);
                    }

                    handlerWrappers.forEach(server::insertHandler);
                    attrs.forEach(server::setAttribute);
                    beans.forEach(bean -> {
                        final Boolean managed = bean.isManaged();
                        if (managed == null) {
                            server.addBean(bean.bean());
                        } else {
                            server.addBean(bean.bean(), managed);
                        }
                    });

                    eventListeners.forEach(server::addEventListener);

                    customizers.forEach(c -> c.accept(server));
                    return server;
                } finally {
                    lock.unlock();
                }
            }
Returns a newly-created {@link JettyService} based on the properties of this builder.
jetty/jetty12/src/main/java/com/linecorp/armeria/server/jetty/JettyServiceBuilder.java