StyleType type = styleProperty.getStandardDetails().getSupportedStructure();
StylePairType pairType = null;
if (type instanceof StylePairType) {
pairType = (StylePairType) type;
} else if (type instanceof StyleChoiceType) {
StyleChoiceType choice = (StyleChoiceType) type;
List types = choice.getTypes();
Iterator it = types.iterator();
while (pairType == null && it.hasNext()) {
StyleType next = (StyleType) it.next();
if (next instanceof StylePairType) {
pairType = (StylePairType) next;