function setResourceModel(oView, mSettings) {
		if ((oView._resourceBundleName || oView._resourceBundleUrl) && (!mSettings.models || !mSettings.models[oView._resourceBundleAlias])) {
			var oModel = new ResourceModel({
				bundleName: oView._resourceBundleName,
				bundleUrl: oView._resourceBundleUrl,
				bundleLocale: oView._resourceBundleLocale,
				async: mSettings.async
			});
			var vBundle = oModel.getResourceBundle();
			// if ResourceBundle was created with async flag vBundle will be a Promise
			if (vBundle instanceof Promise) {
				return vBundle.then(function() {
					oView.setModel(oModel, oView._resourceBundleAlias);
				});
			}
			oView.setModel(oModel, oView._resourceBundleAlias);
		}
	}
Sets the resource model to the given <code>oView</code>

@param {sap.ui.core.mvc.XMLView} oView The view instance
@param {map} mSettings The view settings
@returns {undefined|Promise} will return a Promise if ResourceModel is instantiated asynchronously, otherwise undefined