code: function (oComponent) {
  			var oSapApp = null;
  			// special case for Fiori Elements to reach the real appComponent
  			if (oComponent && oComponent.getAppComponent) {
  				return oComponent.getAppComponent();
  			}
  
  			// special case for OVP
  			if (oComponent && oComponent.oComponentData && oComponent.oComponentData.appComponent) {
  				return oComponent.oComponentData.appComponent;
  			}
  
  			if (oComponent && oComponent.getManifestEntry) {
  				oSapApp = oComponent.getManifestEntry("sap.app");
  			} else {
  				// if no manifest entry
  				return oComponent;
  			}
  
  			if (oSapApp && oSapApp.type && oSapApp.type !== "application") {
  				if (oComponent instanceof Component) {
  					// we need to call this method only when the component is an instance of Component in order to walk up the tree
  					// returns owner app component
  					oComponent = this._getComponentForControl(oComponent);
  				}
  				return this.getAppComponentForControl(oComponent);
  			}
  
  			return oComponent;
  		}
docs: Returns the Component that belongs to given component whose type is "application".
  
  @param {sap.ui.core.Component} oComponent - SAPUI5 component
  @returns {sap.ui.core.Component|null} component instance if found or null
  @private