nl_tokens: Called when the server has returned a payload representing a single record such as in response to a find or save .
pl_tokens: function ( store , primaryType , payload , recordId , requestType ) { payload = this . normalizePayload ( primaryType , payload ) ; var primaryTypeName = primaryType . typeKey , primaryRecord ; for ( var prop in payload ) { var typeName = this . typeForRoot ( prop ) , isPrimary = typeName === primaryTypeName ; // legacy support for singular resources if ( isPrimary && Ember . typeOf ( payload [ prop ] ) !== "array" ) { primaryRecord = this . normalize ( primaryType , payload [ prop ] , prop ) ; continue ; } var type = store . modelFor ( typeName ) ; /*jshint loopfunc:true*/ forEach . call ( payload [ prop ] , function ( hash ) { var typeName = this . typeForRoot ( <mask> ) , type = store . modelFor ( typeName ) , typeSerializer = store . serializerFor ( type ) ; hash = typeSerializer . normalize ( type , hash , prop ) ; var isFirstCreatedRecord = isPrimary && ! recordId && ! primaryRecord , isUpdatedRecord = isPrimary && coerceId ( hash . id ) === recordId ; // find the primary record. // // It's either: // * the record with the same ID as the original request // * in the case of a newly created record that didn't have an ID, the first //   record in the Array if ( isFirstCreatedRecord || isUpdatedRecord ) { primaryRecord = hash ; } else { store . push ( typeName , hash ) ; } } , this ) ; } return primaryRecord ; }