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

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