logger.log(TreeLogger.ERROR, "Unable to find metadata for type '"
+ typeName + "'", null);
throw new UnableToCompleteException();
}
GwtValidation gwtValidation = validatorType.findAnnotationInTypeHierarchy(GwtValidation.class);
if (gwtValidation == null) {
logger.log(TreeLogger.ERROR, typeName + " must be anntotated with "
+ GwtValidation.class.getCanonicalName(), null);
throw new UnableToCompleteException();
}
if (gwtValidation.value().length == 0) {
logger.log(TreeLogger.ERROR,
"The @" + GwtValidation.class.getSimpleName() + " of " + typeName
+ "must specify at least one bean type to validate.", null);
throw new UnableToCompleteException();
}