java implementation for configuration xml generation and import