fixed issue reported under {https://wso2.org/jira/browse/ESBJAVA-2854
fixed issure reported under {https://wso2.org/jira/browse/ESBJAVA-2854}
Merge pull request #17 from dushansachinda/master

fixed issue https://wso2.org/jira/browse/ESBJAVA-2854