function updateTokenInPropertyBagAndConnector (mPropertyBag) {
		return Utils.sendRequest(mPropertyBag.tokenUrl, "HEAD").then(function (oResult) {
			if (oResult && oResult.xsrfToken) {
				if (mPropertyBag.initialConnector) {
					mPropertyBag.initialConnector.xsrfToken = oResult.xsrfToken;
				}
				mPropertyBag.xsrfToken = oResult.xsrfToken;
				return mPropertyBag;
			}
		});
	}
/**
	 * Gets new X-CSRF token from the back end and update token value in the PropertyBag and apply connector.
	 *
	 * @param {object} mPropertyBag Object with parameters as properties
	 * @param {sap.ui.fl.connector.BaseConnector} mPropertyBag.initialConnector Corresponding apply connector which stores an existing X-CSRF token
	 * @param {string} mPropertyBag.tokenUrl The url to be called when new token fetching is necessary
	 * @private
	 * @returns {Promise} Promise resolves when new token is retrieved from response header
	 */
Gets new X-CSRF token from the back end and update token value in the PropertyBag and apply connector.
Gets new X - CSRF token from the back end and update token value in the PropertyBag and apply connector .
function updateTokenInPropertyBagAndConnector (mPropertyBag) {
		return Utils.sendRequest(mPropertyBag.tokenUrl, "HEAD").then(function (oResult) {
			if (oResult && oResult.xsrfToken) {
				if (mPropertyBag.initialConnector) {
					mPropertyBag.initialConnector.xsrfToken = oResult.xsrfToken;
				}
				mPropertyBag.xsrfToken = oResult.xsrfToken;
				return mPropertyBag;
			}
		});
	}
function updateTokenInPropertyBagAndConnector ( mPropertyBag ) { return Utils . sendRequest ( mPropertyBag . tokenUrl , "HEAD" ) . then ( function ( oResult ) { if ( oResult && oResult . xsrfToken ) { if ( mPropertyBag . initialConnector ) { mPropertyBag . initialConnector . xsrfToken = oResult . xsrfToken ; } mPropertyBag . xsrfToken = oResult . xsrfToken ; return mPropertyBag ; } } ) ; }
Gets new X-CSRF token from the back end and update token value in the PropertyBag and apply connector.
Gets new X - CSRF token from the back end and update token value in the PropertyBag and apply connector .