moving all configuration to java