Fix for https://issues.apache.org/jira/browse/AMQ-4884
Fix for https://issues.apache.org/jira/browse/AMQ-4884