Map<String, Object> enumValueMap = new LinkedHashMap<String, Object>();
Collection<EnumConstantDeclaration> enumConstants = ((EnumDeclaration) getDelegate()).getEnumConstants();
HashSet<QName> enumValues = new HashSet<QName>(enumConstants.size());
String unknownQNameConstant = null;
for (EnumConstantDeclaration enumConstant : enumConstants) {
XmlUnknownQNameEnumValue unknownQNameEnumValue = enumConstant.getAnnotation(XmlUnknownQNameEnumValue.class);
if (unknownQNameEnumValue != null) {
if (unknownQNameConstant != null) {
throw new ValidationException(enumConstant.getPosition(), getQualifiedName() + ": no more than two constants can be annotated with @XmlUnknownQNameEnumValue.");
}