function validateClass(fnClass, sResourceName) {
				if (!fnClass) {
					let sErrorLogMessage = `Control '${sClassName}' did not return a class definition from sap.ui.define.`;
					/**
					 * Some modules might not return a class definition, so we fallback to the global namespace.
					 * This is against the AMD definition, but is required for backward compatibility.
					 * @deprecated
					 */
					(() => {
						fnClass = ObjectPath.get(sClassName);
						if (fnClass) {
							sErrorLogMessage += " The control class was instead retrieved via a deprecated access to the global namespace. This fallback behavior will be removed in the next major version (2.0).";
						}
					})();

					future.errorThrows(`XMLTemplateProcessor: ${sErrorLogMessage}`);
				}

				validateModuleContent(sResourceName, fnClass);

				return fnClass;
			}
Validates if a control class is available and provides error feedback otherwise.
@param {sap.ui.core.Control|undefined} fnClass control class or undefined if not returned as module content for its sap.ui.define factory
@return {sap.ui.core.Control|undefined} the resolved class.