java implementation for exporting configuration properties as hash map