How to get BOM table referenced configuration name?

avoiding

BomTableAnnotation.BomFeature.Configuration

because it returns empty line if

BomTableAnnotation.BomFeature = swBomType_e.swBomType_TopLevelOnly

SolidworksApi macros