private string RenderInstance(object instance, string processorName = null) { lock (this) { writer = new StringBuilderTextWriter(); Render(instance, processorName); var result = writer.ToString(); writer = null; return(result); } }