fixed issue reported under {https://wso2.org/jira/browse/ESBJAVA-2854
fixed issure reported under {https://wso2.org/jira/browse/ESBJAVA-2854}