Do you want to merge these two properties files into one? If you wound up with the same key twice, what would be the "relative path"?
On my first
Java job, I made a properties reader that loaded a map of maps. Given filename and key it returned a value:
Is that close to what you need?