function viewFactory(sId, vView, sType) {
		var view = null, oView = {};

		// if the id is a configuration object or a string
		// and the vView is not defined we shift the parameters
		if (typeof sId === "object" ||
				typeof sId === "string" && vView === undefined) {
			vView = sId;
			sId = undefined;
		}

		// prepare the parameters
		if (vView) {
			if (typeof vView === "string") {
				oView.viewName = vView;
			} else {
				oView = vView;
			}
		}

		// can be removed when generic type checking for special settings is introduced
		assert(!oView.async || typeof oView.async === "boolean", "sap.ui.view factory: Special setting async has to be of the type 'boolean'!");

		// apply the id if defined
		if (sId) {
			oView.id = sId;
		}

		// apply the type defined in specialized factory functions
		if (sType) {
			oView.type = sType;
		}

		/**
		 * @deprecated because the 'Sequential' Mode is used by default and it's the only mode that will be supported
		 * in the next major release
		 */
		if (oView.type === ViewType.XML && oView.async) {
			// the processingMode might be already set by the asnychronous View.create factory
			// "SequentialLegacy" is only used if the sap.ui.view factory with async=true was called
			oView.processingMode = oView.processingMode || XMLProcessingMode.SequentialLegacy;
		}



		// view replacement
		// get current owner component
		var Component = sap.ui.require("sap/ui/core/Component");

		if (Component && _runWithOwner.getCurrentOwnerId()) {
			var customViewConfig = Component.getCustomizing(_runWithOwner.getCurrentOwnerId(), {
				type: "sap.ui.viewReplacements",
				name: oView.viewName
			});
			if (customViewConfig) {
				// make sure that "async=true" will not be overriden
				delete customViewConfig.async;

				Log.info("Customizing: View replacement for view '" + oView.viewName + "' found and applied: " + customViewConfig.viewName + " (type: " + customViewConfig.type + ")");
				extend(oView, customViewConfig);
			} else {
				Log.debug("Customizing: no View replacement found for view '" + oView.viewName + "'.");
			}
		}

		var sViewClass = getViewClassName(oView);
		view = createView(sViewClass, oView);
		return view;
	}
The old sap.ui.view implementation

@param {string} sId id of the newly created view, only allowed for instance creation
@param {string|object} [vView] the view name or view configuration object
@param {sap.ui.core.mvc.ViewType} [sType] Specifies what kind of view will be instantiated. All valid
view types are listed in the enumeration {@link sap.ui.core.mvc.ViewType}
@returns {sap.ui.core.mvc.View} the created view instance
@private