fix issue reported https://wso2.org/jira/browse/ESBJAVA-3042
Merge pull request #5 from dushansachinda/master

fix issue reported https://wso2.org/jira/browse/ESBJAVA-3042