public void AddAttribute(string key, ElasticObject value) { value.nodeType = NodeType.Attribute; value.InternalParent = this; elasticProvider.AddAttribute(key, value); }