add: if(typeof value === "object"){ for(type in this._datatypeMap){ typeMap = this._datatypeMap[type]; if(value instanceof typeMap.type){ if(!typeMap.serialize){ throw new Error("ItemFileWriteStore:  No serializer defined for type mapping: [" + type + "]"); } return {_type: type, _value: typeMap.serialize(value)}; } } } 
context: 	_flatten: function(/* anything */ value){		if(this.isItem(value)){			var item = value;			// Given an item, return an serializable object that provides a 			// reference to the item.			// For example, given kermit:			//    var kermit = store.newItem({id:2, name:"Kermit"});			// we want to return			//    {_reference:2}			var identity = this.getIdentity(item);			var referenceObject = {_reference: identity};			return referenceObject;		}else{			return value;		}	},
meta: 4497	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/4497/91ce2ddaba03d8a31b5d37c758cdb553f3ec747b/ItemFileWriteStore.js/buggy/data/ItemFileWriteStore.js