function handleElementModified(oEvent) {
		// events are synchronously reset after the handlers are called
		const oCommand = oEvent.getParameter("command");
		const sNewControlID = oEvent.getParameter("newControlId");
		const vAction = oEvent.getParameter("action");
		const sContainerTitle = oEvent.getParameter("title");

		this._pElementModified = this._pElementModified.then(function() {
			this.getPluginManager().handleStopCutPaste();

			if (oCommand instanceof BaseCommand) {
				if (sNewControlID) {
					scheduleOnCreated.call(this, sNewControlID, function(oElementOverlay) {
						const oDesignTimeMetadata = oElementOverlay.getDesignTimeMetadata();
						const fnSelect = oDesignTimeMetadata.getData().select;
						if (typeof fnSelect === "function") {
							fnSelect(oElementOverlay.getElement());
						}
					});
					if (vAction) {
						scheduleRenameOnCreatedContainer.call(this, vAction, sNewControlID, sContainerTitle);
					}
				}
				return this.getCommandStack().pushAndExecute(oCommand)
				// Error handling when a command fails is done in the Stack
				.catch(function(oError) {
					if (oError?.message?.indexOf?.("The following Change cannot be applied because of a dependency") > -1) {
						Utils.showMessageBox("error", "MSG_DEPENDENCY_ERROR", {error: oError});
					}
					Log.error("sap.ui.rta:", oError.message, oError.stack);
				});
			}
			return undefined;
		}.bind(this));
		return this._pElementModified;
	}
Function to handle modification of an element

@param {sap.ui.base.Event} oEvent Event object
@returns {Promise} Returns promise that resolves after command was executed successfully