CSPACE-6273: Separate out handling of the JAVA_HOME environment variable.