code: public boolean isUserInRole(String role) {
          for (String assRole : getRoles()) {
              if (assRole.equalsIgnoreCase(role)) {
                  return true;
              }
          }
          return false;
      }
docs: Check if user is in role specified as parameter (ignoring case)
  
  @param name
  of role to look for (ignoring case)
  @return true if user own specified role, otherwise false