function calculateLabel(oElement) {
			var vFieldLabel = (
				typeof oElement.getText === "function" && oElement.getText()
				|| typeof oElement.getLabelText === "function" && oElement.getLabelText()
				|| typeof oElement.getLabel === "function" && oElement.getLabel()
				|| typeof oElement.getTitle === "function" && oElement.getTitle()
				|| typeof oElement.getHeading === "function" && oElement.getHeading()
				|| typeof oElement.getDataSourceLabel === "function" && oElement.getDataSourceLabel()
			);

			if (ElementUtil.isElementValid(vFieldLabel)) {
				return calculateLabel(vFieldLabel);
			}
			return vFieldLabel;
		}
Extract potential label part from the passed managed object instance

@param {sap.ui.base.ManagedObject} oElement - managed object class instance for which label has to be extracted
@param {function} [fnFunction] - custom function for retrieving label
@return {string|undefined} label string or undefined when no label can be extracted