Language: Java
Label: safe
CWE: NVD-CWE-noinfo \u2014 

Code:
    public ArmeriaServerConfigurator armeriaTomcat(WebServerApplicationContext applicationContext) {
        final WebServer webServer = applicationContext.getWebServer();
        if (webServer instanceof JettyWebServer) {
            final Server jettyServer = ((JettyWebServer) webServer).getServer();

            return serverBuilder -> serverBuilder.service("prefix:/jetty/api/rest/v1",
                                                          JettyService.of(jettyServer));
        }
        return serverBuilder -> {};
    }