public static String isExistingConfiguration(String filename){
  for (  String existingConfigName : getExistingConfigurations()) {
    if (existingConfigName.equalsIgnoreCase(filename))     return existingConfigName;
  }
  return null;
}

public static String isExistingConfiguration ( String filename ) { for ( String existingConfigName : getExistingConfigurations ( ) ) { if ( existingConfigName . equalsIgnoreCase ( filename ) ) return existingConfigName ; } return null ; }
see if the configuration already exists we return the name if matched so that the name case is maintained .
