@GET
    @Produces({MediaType.TEXT_HTML, MediaType.APPLICATION_JSON})
    @Path("/{name}")
    public Response get(@PathParam("name") final String name){
        LOG.info("Got a get license request.");
        final LicenseView view = new LicenseView();

        final DbLicense dbLicense = getLicenseHandler().getLicense(name);
        final License license = getModelMapper().getLicense(dbLicense);
        view.setLicense(license);

        return Response.ok(view).build();
    }
@ GET @ Produces ( { MediaType . TEXT_HTML , MediaType . APPLICATION_JSON } ) @ Path ( "/{name}" ) public Response get ( @ PathParam ( "name" ) final String name ) { LOG . info ( "Got a get license request." ) ; final LicenseView view = new LicenseView ( ) ; final DbLicense dbLicense = getLicenseHandler ( ) . getLicense ( name ) ; final License license = getModelMapper ( ) . getLicense ( dbLicense ) ; view . setLicense ( license ) ; return Response . ok ( view ) . build ( ) ; }
Return a license
This method is call via GET <dm_url>/license/<name>

@param name String
@return Response A license in HTML or JSON