getFlexInfo(mPropertyBag) {
			var aParameters = ["layer"];
			var mParameters = _pick(mPropertyBag, aParameters);

			InitialConnector._addClientInfo(mParameters);

			var sDataUrl = InitialUtils.getUrl(ROUTES.FLEX_INFO, mPropertyBag, mParameters);
			return InitialUtils.sendRequest(sDataUrl, "GET", {initialConnector: InitialConnector}).then(function(oResult) {
				return oResult.response;
			});
		}
Gets the flexibility info for a given application and layer.
The flexibility info is a JSON string that has boolean properties 'isPublishEnabled' and 'isResetEnabled'
that indicate if for the given application and layer a publish and reset shall be enabled, respectively

@param {object} mPropertyBag Property bag
@param {sap.ui.fl.Layer} mPropertyBag.layer Layer
@param {string} mPropertyBag.reference Flex reference of the application
@param {string} mPropertyBag.url Configured url for the connector
@returns {Promise} Promise resolves as soon as flex info has been retrieved