LPS-34711 - Allow $\{java.home\} and $\{env:ENV_VAR\} as replacements.
LPS-34711 Simplify the logic
LPS-34711 Tests
LPS-34711 SF