function handleResponseForVersioning(oResponse, mPropertyBag, bDelete) {
		if (bDelete) {
			return Versions.updateModelFromBackend({
				reference: mPropertyBag.appId,
				layer: mPropertyBag.layer
			}).then(function() {
				return oResponse;
			});
		}
		Versions.onAllChangesSaved({
			reference: mPropertyBag.appId,
			layer: mPropertyBag.layer,
			contextBasedAdaptation: true
		});
		return Promise.resolve(oResponse);
	}
Processing the response to create/read/update/delete adaptations if the expected status is contained in the response object
In case of a deletion the version list is reloaded because the draft might have been deleted on the backend
@param {object} oResponse - Object with response data
@param {number} oResponse.status - HTTP response code
@param {object} mPropertyBag - Object with parameters as properties
@param {string} mPropertyBag.appId - Reference of the application
@param {string} mPropertyBag.layer - Layer
@param {boolean} [bDelete=false] - Indicator whether the response was from a delete
@returns {Promise<object>} Object with response data