fix issue reported {https://wso2.org/jira/browse/ESBJAVA-3165}
Merge pull request #46 from dushansachinda/master

fix issue reported {https://wso2.org/jira/browse/ESBJAVA-3165}