src/sap.ui.core/src/sap/ui/core/util/reflection/BaseTreeModifier.js
function (vControl, oAppComponent) {
			var sControlId = (vControl instanceof ManagedObject) ? vControl.getId() : vControl;

			if (!oAppComponent) {
				Log.error("Determination of a local ID suffix failed due to missing app component for " + sControlId);
				return false;
			}

			return !!oAppComponent.getLocalId(sControlId);
		}
function (vControl, oAppComponent) {
			var sControlId = (vControl instanceof ManagedObject) ? vControl.getId() : vControl;

			if (!oAppComponent) {
				Log.error("Determination of a local ID suffix failed due to missing app component for " + sControlId);
				return false;
			}

			return !!oAppComponent.getLocalId(sControlId);
		}
function ( vControl , oAppComponent ) { var sControlId = ( vControl instanceof ManagedObject ) ? vControl . getId ( ) : vControl ; if ( ! oAppComponent ) { Log . error ( "Determination of a local ID suffix failed due to missing app component for " + sControlId ) ; return false ; } return ! ! oAppComponent . getLocalId ( sControlId ) ; }
Checks if a control ID has a prefix matching the application component.
If this prefix exists, the suffix after the component ID is called the local ID.

@param {sap.ui.core.Control|string} vControl - Control or ID to be checked if it is within the generic application
@param {sap.ui.core.UIComponent} oAppComponent - Application component, needed only if vControl is string (ID)
@returns {boolean} Whether control has a local ID
@protected
Checks if a control ID has a prefix matching the application component . If this prefix exists the suffix after the component ID is called the local ID .