protected static boolean isClientTypeValid(String userAgent){
  boolean valid=true;
  for (int i=0; (i < invalidCharacters.length) && valid; i++) {
    valid=(userAgent.indexOf(invalidCharacters[i]) == -1);
  }
  return valid;
}

protected static boolean isClientTypeValid ( String userAgent ) { boolean valid = true ; for ( int i = 0 ; ( i < invalidCharacters . length ) && valid ; i ++ ) { valid = ( userAgent . indexOf ( invalidCharacters [ i ] ) == - 1 ) ; } return valid ; }
returns true if an user agent name is valid .
