function mixInto(fnClass) {
			// mix the required methods into the target fnClass
			/**
			 * @param {boolean} bAsync Whether to unstash sync or async
			 * @returns {sap.ui.core.Control|Promise<sap.ui.core.Control>} A Promise resolving with the unstashed Control.
			 */
			fnClass.prototype.unstash = function(bAsync) {
				if (this.isStashed()) {
					/**@deprecated */
					if (!bAsync) {
						Log.fatal("Unstashing synchronous is no longer supported. Please switch to the asynchronous variant!");
						return unstash(this);
					}
					return unstashAsync(this);
				}
				return this;
			};

			fnClass.prototype.isStashed = function() {
				return !!stashedControls[this.getId()];
			};

			var fnClone = fnClass.prototype.clone;
			fnClass.prototype.clone = function() {
				if (this.isStashed()) {
					throw new Error("A stashed control cannot be cloned, id: '" + this.getId() + "'.");
				}
				return fnClone.apply(this, arguments);
			};

			var fnDestroy = fnClass.prototype.destroy;
			fnClass.prototype.destroy = function() {
				delete stashedControls[this.getId()];
				fnDestroy.apply(this, arguments);
			};
		}
Mixin function to enhance control functionality

@name sap.ui.core.StashedControlSupport.mixInto
@param {function} fnClass the class to be enhanced

@private