code: function afterEntityStored( returnResult, serverResponse ) {
  		var self = this;
  
  		// Writing an entity to the backend will usually invoke an update event to be
  		// broadcast over websockets, where we would also retrieve the updated record.
  		// We still put the updated record we receive here into the cache to ensure early consistency, if that is requested.
  		if( !returnResult && !self.forceEarlyCacheUpdate ) {
  			return;
  		}
  
  		if( serverResponse.data[ configuration.entityName ] ) {
  			var rawEntity = serverResponse.data[ configuration.entityName ];
  			// If early cache updates are forced, put the return entity into the cache.
  			if( self.forceEarlyCacheUpdate ) {
  				var newEntity = self.deserializer( rawEntity );
  				self.__updateCacheWithEntity( newEntity );
  
  				if( returnResult ) {
  					return newEntity;
  				}
  			}
  			if( returnResult ) {
  				return rawEntity;
  			}
  		}
  	}
docs: Invoked when the entity was stored on the server.
  @param {Boolean} returnResult Should we return the parsed entity that is contained in the response?
  @param {angular.IHttpPromiseCallbackArg|Object} serverResponse The reply sent from the server.