handle $1 replacements in java parser
Merge pull request #434 from emidln/emidln/add_dollar1_os_replacements_to_java

handle $1 replacements in java parser