Debugging code for AMQ-4997