function _getBoundEntityTypeFromV2Model(oModel, sBindingPath, sEntityType) {
		return oModel.metadataLoaded().then(function() {
			var oEntityType = null;

			if (sEntityType) {
				oEntityType = oModel.oMetadata._getEntityTypeByName(sEntityType);
			}

			oEntityType ||= oModel.oMetadata._getEntityTypeByPath(sBindingPath);

			return oEntityType ? oEntityType.name : null;
		});
	}
Get bound entity type in case of oData v2 model

@private
@param {sap.ui.model.odata.v2.ODataModel} oModel - oData model
@param {string} sBindingPath - binding path of control
@param {string} sEntityType - entity type of control (i.e. SmartFilterBar)
@returns {Promise<string>} Resolves with the entity type name to which the control is bound or <code>null</code>