code: public CmsRoleViolationException createRoleViolationException(CmsRequestContext requestContext) {
  
          return new CmsRoleViolationException(
              Messages.get().container(
                  Messages.ERR_USER_NOT_IN_ROLE_2,
                  requestContext.getCurrentUser().getName(),
                  getName(requestContext.getLocale())));
      }
docs: Returns a role violation exception configured with a localized, role specific message
  for this role.<p>
  
  @param requestContext the current users OpenCms request context
  
  @return a role violation exception configured with a localized, role specific message
  for this role