Convert TEI to NLM class to use proper debug output methods