class ProductResource extends AbstractResource {

    @GET
    @Path("/{name}" + ServerAPI.GET_DELIVERIES)
    @Produces(MediaType.APPLICATION_JSON)
    public Response getDeliveries(@PathParam("name") final String name){
        if(LOG.isInfoEnabled()) {
            LOG.info(String.format("Got a get deliveries request for product [%s]", name));
        }

        final DbProduct dbProduct = getProductHandler().getProduct(name);
        final List<Delivery> delivery = dbProduct.getDeliveries();
        delivery.sort(Comparator.comparing(Delivery::getCommercialName));

        return Response.ok(delivery).build();
    }

    public  ProductResource(final RepositoryHandler repositoryHandler, final GrapesServerConfig configuration);

}