function getItemIndex(oItem) {
				if (oItem.getIndex) { // sap.ui.table.Row
					return oItem.getIndex();
				} else if (oItem.getList) { // sap.m.ListItemBase
					return oItem.getList().getItems().indexOf(oItem);
				}

				return undefined;
			}
Returns the index of the given table item/row in its table or <code>undefined</code>
in case the given item control is no table item

@param {any} oItem The table item control
@returns {number|undefined} The index of the item control or <code>undefined</code>