https://issues.apache.org/jira/browse/AMQ-5049

patch applied.