class PartyInfoResource {

    @GET
    @Path("/keys")
    @Produces(MediaType.APPLICATION_JSON)
    @ApiOperation(value = "Fetch network/peer public keys")
    @ApiResponses({@ApiResponse(code = 200, message = "Peer/Network public keys")})
    public Response getPartyInfoKeys() {

        final NodeInfo current = this.discovery.getCurrent();

        final JsonArrayBuilder recipientBuilder = Json.createArrayBuilder();
        current.getRecipients().stream()
            .map(
                recipient ->
                    Json.createObjectBuilder()
                        .add("key", recipient.getKey().encodeToBase64())
                        .build())
            .forEach(recipientBuilder::add);

        final String output =
            Json.createObjectBuilder()
                .add("keys", recipientBuilder.build())
                .build()
                .toString();

        return Response.status(Response.Status.OK).entity(output).build();
    }

    public  PartyInfoResource(final Discovery discovery);

}