code: protected UserAction getUserAction(User user, String path, Object content, Map<String,String> headers) {
          Action action = getAction(path, content, headers);
          Entity entity = getEntity(path, content, headers);
          Long entityId = getEntityId(path, content, headers);
          String descrip = getEntityDescription(path, content, headers);
          if (descrip.length() > 1000)
              descrip = descrip.substring(0, 999);
          UserAction userAction = new UserAction(user.getCuid(), action, entity, entityId, descrip);
          userAction.setSource(getSource());
          return userAction;
      }
docs: For audit logging.