fixed issue reported {https://wso2.org/jira/browse/ESBJAVA-3151}
Merge pull request #47 from dushansachinda/master

fixed issue reported {https://wso2.org/jira/browse/ESBJAVA-3151}