public static String getTempDirectory(final String product) {
    return getTempDirectory()
        + (isRunningWindows() ? product : product.toLowerCase())
        + File.separator;
  }
Determines the system temporary directory for the specified product. The path returned by this
method always contains a trailing path separator.

@param product the product name to use when building the directory name
@return The directory where to save temporary files in.
java/zylib/src/main/java/com/google/security/zynamics/zylib/system/SystemHelpers.java