Potential fix for AMQ-5099, remove dead code
Debugging code for AMQ-4977