Object unwrapped = wrpper.unwrap(from);
boolean array = false;
if (list.size() > 1) {
array = (Boolean) wrpper.unwrap((TemplateModel) list.get(1));
}
<BUG>StringBuilder builder = new StringBuilder();
if (unwrapped instanceof HasAnnotations) {</BUG>
HasAnnotations el = (HasAnnotations) unwrapped;
Max max = el.getAnnotation(Max.class);
DecimalMax decimalMax = el.getAnnotation(DecimalMax.class);

Object unwrapped = wrpper.unwrap(from);
boolean array = false;
if (list.size() > 1) {
array = (Boolean) wrpper.unwrap((TemplateModel) list.get(1));
}
Map<String, String> constraints = new HashMap<String, String>();
if (unwrapped instanceof HasAnnotations) {
HasAnnotations el = (HasAnnotations) unwrapped;
Max max = el.getAnnotation(Max.class);
DecimalMax decimalMax = el.getAnnotation(DecimalMax.class);
