fnConvert = function(obj, level, maxLevel) {
		if (level === undefined) {
			level = 0;
		}
		if (maxLevel === undefined) {
			maxLevel = 2;
		}

		// Null
		if (obj == null) {
			return obj;
		}

		// HTML Element - if represents a control, return the control. Otherwise return the HTML Element and stop.
		if (obj instanceof window.HTMLElement) {
			var oControl = fnGetControlFor(obj);
			return oControl ? oControl : obj;
		}

		if (level < maxLevel) {
			// Array
			if (Array.isArray(obj)) {
				return obj.map(fnConvert, level + 1, maxLevel);
			}

			// Object
			if (typeof obj === "object") {
				var oResult = {};
				for (var i in obj) {
					if (obj.hasOwnProperty(i)) {
						oResult[i] = fnConvert(obj[i], level + 1, maxLevel);
					}
				}
				return oResult;
			}
		}

		// Anything else
		return obj;
	}
Takes an object as an argument and returns another object, where all fields in the original object, that are HTML Elements, are deeply replaced with their sap.ui.core.Element counterparts, where applicable

@param obj
@param level
@param maxLevel
@returns {Object}
@private