function _getDomElement(mData) {
		if (mData.domElementId && typeof mData.domElementId === "string") {
			// mData would contain DOM element ID: when control is selected by clicking on the page
			return document.getElementById(mData.domElementId);
		} else if (mData.controlId) {
			// mDat would contain control ID: when control is selected from the recorder control tree
			return Element.getElementById(mData.controlId).getFocusDomRef();
		}
	}
generates a UIVeri5 selector for a control

@param {object} mData data of the control for which to find a selector. Must contain either domElementId or controlId.
@param {string} mData.domElementId ID of a DOM element that is part of the control DOM tree
@param {string} mData.controlId ID of the control
@param {object} mData.settings preferences for the selector
@param {boolean} mData.settings.preferViewId true if selectors with view ID should have higher priority than selectors with global ID. Default value is false.
@returns {Promise<string>} Promise for a control selector or error