if (note.type().equals(CorbaUnionElementType.discriminator)) {
attributes.setDiscriminatorName(forClass.getDeclaredFields()[i].getName());
} else if (note.type().equals(CorbaUnionElementType.defaultOption)) {
attributes.setDefaultOptionName(forClass.getDeclaredFields()[i].getName());
} else if (note.type().equals(CorbaUnionElementType.option)) {
if (attributes.getOptionsMapping().containsKey(note.optionNumber())) {
throw new RequestConfigurationException("In " + forClass
+ ": field \""
+ forClass.getDeclaredFields()[i].getName()
+ "\" uses already used option id: "
+ note.optionNumber());