Override JAVA_HOME only if the uses has overridden it, otherwise use the value of the JAVA_HOME variable received from the Java package Glassfish depends on.