Refactor debug message output to use context registry specific implement...

...ations