@DELETE @Path("{annotationId}") public Response deleteAnnotation(@PathParam("annotationId") String annotationId) { AnnotationService annotationService = Framework.getService(AnnotationService.class); annotationService.deleteAnnotation(getContext().getCoreSession(), annotationId); return Response.noContent().build(); }