private static boolean isSpecialDomain(final String domain){
  final String ucDomain=domain.toUpperCase(Locale.ENGLISH);
  return ucDomain.endsWith(".COM") || ucDomain.endsWith(".EDU") || ucDomain.endsWith(".NET")|| ucDomain.endsWith(".GOV")|| ucDomain.endsWith(".MIL")|| ucDomain.endsWith(".ORG")|| ucDomain.endsWith(".INT");
}

private static boolean isSpecialDomain ( final String domain ) { final String ucDomain = domain . toUpperCase ( Locale . ENGLISH ) ; return ucDomain . endsWith ( ".COM" ) || ucDomain . endsWith ( ".EDU" ) || ucDomain . endsWith ( ".NET" ) || ucDomain . endsWith ( ".GOV" ) || ucDomain . endsWith ( ".MIL" ) || ucDomain . endsWith ( ".ORG" ) || ucDomain . endsWith ( ".INT" ) ; }
checks if the given domain is in one of the seven special top level domains defined by the netscape cookie specification .
