public override void Apply(XmlDocument document, string key) { CodeController codeController = CodeController.GetInstance("conceptual"); if (codeController == null) { return; } codeController.UnregisterAll(); try { ApplyCodes(document, key); if (_codeRefEnabled) { ApplyCodeRefs(document, key); } } catch (Exception ex) { this.WriteMessage(MessageLevel.Error, ex); } }