@GET @Path("statistics.json") @Produces(MediaType.APPLICATION_JSON) @RestQuery(name = "statisticsasjson", description = "List the service registrations in the cluster, along with some simple statistics", returnDescription = "The service statistics.", reponses = { @RestResponse(responseCode = SC_OK, description = "A JSON representation of the service statistics") }) public Response getStatisticsAsJson() { try { return Response.ok(new JaxbServiceStatisticsList(serviceRegistry.getServiceStatistics())).build(); } catch (ServiceRegistryException e) { throw new WebApplicationException(e, Response.Status.INTERNAL_SERVER_ERROR); } }