class PluginListHandler implements WebServiceHandler {

    @Override
    public Eventual<HttpResponse> handle(HttpRequest request, HttpInterceptor.Context context) {
        Stream<NamedPlugin> enabled = plugins.stream().filter(NamedPlugin::enabled);
        Stream<NamedPlugin> disabled = plugins.stream().filter(plugin -> !plugin.enabled());

        boolean needsIncludeDisabledPlugins = existDisabledPlugins();
        String output = section(needsIncludeDisabledPlugins ? "Enabled" : "Loaded", enabled)
                + (needsIncludeDisabledPlugins ? section("Disabled", disabled) : "");

        return Eventual.of(response(OK)
                .body(output, UTF_8)
                .addHeader(CONTENT_TYPE, HTML_UTF_8.toString())
                .build());
    }

    public  PluginListHandler(List<NamedPlugin> plugins);

}