public <E extends Enum<E>> E validateEnum(Class<E> clz, String name) {
   String reason = localize(Messages.INVALID_ENUM_REASON);
   String detail = localize(Messages.INVALID_ENUM_DETAIL);
   return EnumValidator.validateEnum(reason, detail, clz, name);
 }