Convert TopicRefWriter into a SAX filter