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

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

			oEntitySet ||= oModel.oMetadata._getEntitySetByPath(sBindingPath);

			return oEntitySet ? oEntitySet.name : null;
		});
	}
Get bound entity set 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 set name to which the control is bound or <code>null</code>