code: function (oSelector, oAppComponent) {
  			if (!oSelector){
  				return undefined;
  			}
  
  			if (typeof oSelector === "string") {
  				oSelector = {
  					id: oSelector
  				};
  			}
  
  			var sControlId = oSelector.id;
  
  			if (oSelector.idIsLocal) {
  				if (oAppComponent) {
  					sControlId = oAppComponent.createId(sControlId);
  				} else {
  					throw new Error("App Component instance needed to get a control's ID from selector");
  				}
  			} else {
  				// does nothing except in the case of a FLP prefix
  				var pattern = /^application-[^-]*-[^-]*-component---/igm;
  				var bHasFlpPrefix = !!pattern.exec(oSelector.id);
  				if (bHasFlpPrefix) {
  					sControlId = sControlId.replace(/^application-[^-]*-[^-]*-component---/g, "");
  					if (oAppComponent) {
  					sControlId = oAppComponent.createId(sControlId);
  					} else {
  					throw new Error("App Component instance needed to get a control's ID from selector");
  					}
  				}
  			}
  
  			return sControlId;
  		}
docs: Function determining the control ID from the selector.
  The function distinguishes between local IDs generated starting with 1.40 and the global IDs generated in previous versions.
  @param {object} oSelector - Target of a flexiblity change
  @param {string} oSelector.id - ID of the control targeted by the change
  @param {boolean} oSelector.isLocalId - <code>true</code> if the ID within the selector is a local ID or a global ID
  @param {sap.ui.core.UIComponent} oAppComponent - Application component
  @returns {string} ID of the control
  @throws {Error} In case no control could be determined an error is thrown
  @protected