protected string YamlMappingToString(IActivityMonitor m) { if (GetFirstMapping(m, false) != null) { var output = new StringBuilder(); using (var w = new StringWriter(output)) { var emitter = new Emitter(w); int i = 0; foreach (var e in _yamlStream.EnumerateEvents()) { emitter.Emit(e); if (++i == 3) { // Remove meta header with %TAG... output.Clear(); } } } return(output.ToString()); } return(null); }