code: @RequestMapping(value = "{entityType}/{id}", method = RequestMethod.GET)
      public Callable<Resources<Decoration<?>>> getDecorations(@PathVariable ProjectEntityType entityType, @PathVariable ID id) {
          // Gets the current request attributes
          RequestAttributes attributes = RequestContextHolder.currentRequestAttributes();
          return () -> {
              RequestContextHolder.setRequestAttributes(attributes);
              try {
                  return Resources.of(
                          decorationService.getDecorations(getEntity(entityType, id)),
                          uri(on(getClass()).getDecorations(entityType, id))
                  ).forView(Decoration.class);
              } finally {
                  RequestContextHolder.resetRequestAttributes();
              }
          };
      }
docs: Decorations for an entity.