class ClusterResource {

  @GET
  public Response getClusterList(@QueryParam("seedHost") Optional<String> seedHost) {
    LOG.debug("get cluster list called");

    Collection<String> clusters = context.storage.getClusters()
        .stream()
        .filter(c -> !seedHost.isPresent() || c.getSeedHosts().contains(seedHost.get()))
        .sorted()
        .map(c -> c.getName())
        .collect(Collectors.toList());

    return Response.ok().entity(clusters).build();
  }

  public  ClusterResource(AppContext context, Cryptograph cryptograph, ExecutorService executor);

}