Config generation logic modified
Fixing TOOLS-2403
Merge pull request #16 from wso2-dev/master

Merge pull request #11