class MergeRequestRest {

    @DELETE
    @Path("{requestId}")
    @RolesAllowed("user")
    @ApiOperation("Deletes a MergeRequest that has the provided requestId")
    public Response deleteMergeRequest(@PathParam("requestId") String requestId) {
        Resource requestIdResource = createIRI(requestId, vf);
        try {
            manager.deleteMergeRequest(requestIdResource);
            return Response.ok().build();
        } catch (IllegalArgumentException ex) {
            throw ErrorUtils.sendError(ex,"Merge Request " + requestId + " could not be found",
                    Response.Status.NOT_FOUND);
        } catch (IllegalStateException | MobiException ex) {
            throw ErrorUtils.sendError(ex, ex.getMessage(), Response.Status.INTERNAL_SERVER_ERROR);
        }
    }

}