class CommitRest {

    @GET
    @Path("{commitId}")
    @Produces(MediaType.APPLICATION_JSON)
    @RolesAllowed("user")
    @ApiOperation("Retrieves the Commit specified by the provided ID.")
    public Response getCommit(@PathParam("commitId") String commitId,
                       @DefaultValue("jsonld") @QueryParam("format") String format) {
        long start = System.currentTimeMillis();
        try {
            Optional<Commit> optCommit = catalogManager.getCommit(vf.createIRI(commitId));

            if (optCommit.isPresent()) {
                return createCommitResponse(optCommit.get(), transformer, bNodeService);
            } else {
                return Response.status(Response.Status.NOT_FOUND).build();
            }
        } finally {
            logger.trace("getCommit took {}ms", System.currentTimeMillis() - start);
        }
    }

}