private static boolean isX86() {
        String arch = System.getenv("PROCESSOR_ARCHITECTURE");
        String wow64Arch = System.getenv("PROCESSOR_ARCHITEW6432");

        boolean isX86;
        if (arch.endsWith("64") || ((wow64Arch != null) && wow64Arch.endsWith("64"))) {
            isX86 = false;
        } else {
            isX86 = true;
        }

        return isX86;
    }