Object ref = context.getObjectByRef(href);
if (ref == null) {
// Nothing yet... register for later interest.
context.registerFixup(href, this);
} else if (ref instanceof MessageElement) {
context.replaceElementHandler(new EnvelopeHandler(this));
SAX2EventRecorder r = context.getRecorder();
context.setRecorder(null);
((MessageElement)ref)
.publishToHandler((DefaultHandler) context);
context.setRecorder(r);