function loadModuleAndLog(sModuleName, sComponentName) {
		const def = new Deferred();

		// might be in module if define in the manifest
		sModuleName = sModuleName.replace("module:", "");

		sap.ui.require([sModuleName], def.resolve, (err) => {
			future.warningRejects(def.resolve, def.reject, `sap.ui.core.Component: Cannot load module '${sModuleName}' during creation of component: "${sComponentName}".`);
			Log.warning(err);
		});

		return def.promise;
	}
Loads a module and logs a potential loading error as a warning.

@param {string} sModuleName the module to be loaded
@param {string} sComponentName the component-name for which the module is loaded
@returns {Promise} the loading promise of the module