fixed {https://wso2.org/jira/browse/ESBJAVA-3039}
Merge pull request #28 from dushansachinda/master

fixed {https://wso2.org/jira/browse/ESBJAVA-3039}