int max = 0;
String applyIfValang = null;
if (a instanceof Length) {
Length annotation = (Length) a;
errMsg = messages.getMessage(annotation.errorCode(), annotation.message());
min = annotation.min();
max = annotation.max();
applyIfValang = valangToJS(annotation.applyIf());
} else if (a instanceof Size) {
Size annotation = (Size) a;