code: @POST
    @Path("me")
    @RolesAllowed({"ROLE_ADMIN", "ROLE_USER"})
    public Response updateMe(@Context HttpServletRequest request,
                             @Context UriInfo uriInfo,
                             @Context SecurityContext securityContext,
                             DUser user) {
  
      Long userId = (Long) request.getAttribute(OAuth2Filter.NAME_USER_ID);
      if (null == user.getId()) {
        user.setId(userId);
      } else if (!user.getId().equals(userId)) {
        throw new BadRequestRestException("User ids does not match");
      }
  
      return update(userId, uriInfo, securityContext, user);
    }
docs: Update the current user.
  
  @param request injected
  @param uriInfo injected
  @param user  new user info
  @return http 200
  The URI of the updated user will be stated in the Location header