class ProviderListHandler implements WebServiceHandler {

    @Override
    public Eventual<HttpResponse> handle(HttpRequest request, HttpInterceptor.Context context) {
        String providerList = providerDb.entrySet().stream()
                .map(entry -> htmlForProvider(entry.getKey(), entry.getValue()))
                .collect(joining());
        String html = String.format(HTML_TEMPLATE, TITLE, h2(TITLE) + providerList);
        return Eventual.of(response(OK)
                .body(html, UTF_8)
                .addHeader(CONTENT_TYPE, HTML_UTF_8.toString())
                .build());
    }

    public  ProviderListHandler(ObjectStore<? extends StyxObjectRecord<? extends StyxService>> providerDb);

}