@GET @Path("external/{entityId}") public Annotation getExternalAnnotation(@PathParam("entityId") String entityId) { AnnotationService annotationService = Framework.getService(AnnotationService.class); return annotationService.getExternalAnnotation(getContext().getCoreSession(), entityId); }