code: public boolean hasRole(CmsRequestContext context, CmsUser user, CmsRole role) {
  
          CmsDbContext dbc = m_dbContextFactory.getDbContext(context);
          boolean result;
          try {
              result = hasRole(dbc, user, role);
          } finally {
              dbc.clear();
          }
          return result;
      }
docs: Checks if the given user has the given role in the given organizational unit.<p>
  
  If the organizational unit is <code>null</code>, this method will check if the
  given user has the given role for at least one organizational unit.<p>
  
  @param context the current request context
  @param user the user to check the role for
  @param role the role to check
  
  @return <code>true</code> if the given user has the given role in the given organizational unit