fixed https://wso2.org/jira/browse/ESBJAVA-3202
Merge pull request #32 from dushansachinda/master

fixed https://wso2.org/jira/browse/ESBJAVA-3202