private boolean isValidAnonUserName(){
  if (isCaseSensitive) {
    return validAnonUsernames.contains(usernameParam);
  }
 else {
    for (Iterator it=validAnonUsernames.iterator(); it.hasNext(); ) {
      String name=(String)it.next();
      if (name != null && name.equalsIgnoreCase(usernameParam)) {
        usernameParam=name;
        return true;
      }
    }
  }
  return false;
}

private boolean isValidAnonUserName ( ) { if ( isCaseSensitive ) { return validAnonUsernames . contains ( usernameParam ) ; } else { for ( Iterator it = validAnonUsernames . iterator ( ) ; it . hasNext ( ) ; ) { String name = ( String ) it . next ( ) ; if ( name != null && name . equalsIgnoreCase ( usernameParam ) ) { usernameParam = name ; return true ; } } } return false ; }
check if the username is a valid anonymous user name in either case sensitive or insensitive cases .
