This closes #44. Timothy Bish applied patch. See https://issues.apache.org/jira/browse/AMQ-5281?focusedCommentId=14100884
&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14100884