Java brand model parser

Hi Niels, 
Starting with applying the fix for the OSParser (374) I had troubles to run the tests with my latest regexes file.
This change contains the fix for the OSParser as well as a refactored "multiReplace".
Can you please be so kind and review by changes?
Thanks