class DiscoveryService {

    @GET
    @Produces( MediaType.APPLICATION_JSON )
    public Response getDiscoveryDocument( @Context UriInfo uriInfo )
    {
        return outputFormat.ok(
                new DiscoveryRepresentation( new DiscoverableURIs.Builder( uris ).overrideAbsolutesFromRequest( uriInfo.getBaseUri() ).build() ) );
    }

    public  DiscoveryService( @Context Config config, @Context OutputFormat outputFormat, @Context DiscoverableURIs uris );

}