}
@Override
public String convert(Accessor accessor) throws TemplateModelException {
if (accessor.isCollectionType() && accessor instanceof Element) {
Element element = (Element) accessor;
//@XmlElementRefs and @XmlElements can't
if (element instanceof ElementRef && ((ElementRef) element).isElementRefs()) {
return "com.google.gwt.core.client.JsArray";
}
else if (element.getAnnotation(XmlElements.class) != null) {
return "com.google.gwt.core.client.JsArray";
}
}
return super.convert(accessor);
}