public static String getApplicationDataDirectory(final String product) {
    return getApplicationDataDirectory()
        + (isRunningLinux() ? "." + product.toLowerCase() : product)
        + File.separator;
  }
Determines the application data directory for the specified product in a platform-independent
way. 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 application data directory for the current platform.
java/zylib/src/main/java/com/google/security/zynamics/zylib/system/SystemHelpers.java