@PUT @Path("{annotationId}") public Annotation updateAnnotation(@PathParam("annotationId") String annotationId, Annotation annotation) { AnnotationService annotationService = Framework.getService(AnnotationService.class); annotationService.updateAnnotation(getContext().getCoreSession(), annotationId, annotation); return annotation; }