@Override
public ValidationResult validateEnumType(EnumTypeDefinition enumType) {
ValidationResult result = super.validateEnumType(enumType);
for (EnumConstantDeclaration enumItem : ((EnumDeclaration) enumType.getDelegate()).getEnumConstants()) {
String simpleName = enumItem.getSimpleName();
ClientName clientNameInfo = enumItem.getAnnotation(ClientName.class);
if (clientNameInfo != null) {
simpleName = clientNameInfo.value();
}
if ("event".equals(simpleName)) {
result.addError(enumItem, "C# can't handle an enum constant named 'Event'. Either rename the enum constant, or use the @org.codehaus.enunciate.ClientName annotation to rename it on the client-side.");
}