private static String translateOSNameToFolderName(String osName){
  if (osName.contains("Windows")) {
    return "Windows";
  }
 else   if (osName.contains("Mac")) {
    return "Mac";
  }
 else   if (osName.contains("Linux")) {
    return "Linux";
  }
 else   if (osName.contains("AIX")) {
    return "AIX";
  }
 else {
    return osName.replaceAll("\\W","");
  }
}

private static String translateOSNameToFolderName ( String osName ) { if ( osName . contains ( "Windows" ) ) { return "Windows" ; } else if ( osName . contains ( "Mac" ) ) { return "Mac" ; } else if ( osName . contains ( "Linux" ) ) { return "Linux" ; } else if ( osName . contains ( "AIX" ) ) { return "AIX" ; } else { return osName . replaceAll ( "\\W" , "" ) ; } }
translates the os name to folder name .
