refactored java implementation for config as hash map export