function checkIdNamespaceCompliance(sId, oChange) {
		var sLayer = oChange.getLayer();
		if (!sLayer) {
			throw new Error("Mandatory layer parameter is not provided.");
		}
		var sPrefix = getNamespacePrefixForLayer(sLayer);

		if (sPrefix === null) {
			Object.keys(layer_prefixes).forEach(function(sKey) {
				if (layer_prefixes[sKey] && sId.startsWith(layer_prefixes[sKey])) {
					throw new Error(`Id ${sId} must not start with reserved ${layer_prefixes[sKey]}`);
				}
			});
		} else if (!sId.startsWith(sPrefix)) {
			throw new Error(`Id ${sId} must start with ${sPrefix}`);
		}
	}
Checks the namespace compliance of an ID for a given change.
The target layer is derived from the change.
@param {string} sId - The ID to check
@param {sap.ui.fl.apply._internal.flexObjects.FlexObject} oChange - The change from where to derive the layer
@private
@ui5-restricted sap.ui.fl, sap.suite.ui.generic.template