CSPACE-6273: Experiment with dynamically setting JAVA_HOME value via custom function and template.