Fix domains in external config files for java apps