Use the same classIndex approach as from the getStyleDescriptionForLayer:inClass: