comitted the patch which the issue reported uneder
{https://wso2.org/jira/browse/ESBJAVA-2993}