function maybeSetAndroidHome (value) {
            if (!hasAndroidHome && fs.existsSync(value)) {
                hasAndroidHome = true;
                process.env.ANDROID_HOME = value;
            }
        }
Checks for the java installation and correct version

Despite the name, it should return the Java version value, it's used by the Cordova CLI.