// register primitives for boxed types just to make GrammarInfo fool-proof
for( Map.Entry<Class,Class> e : RuntimeUtil.primitiveToBox.entrySet() )
beanInfoMap.put( e.getKey(), beanInfoMap.get(e.getValue()) );
// build bridges
ReflectionNavigator nav = typeSet.getNavigator();
for (TypeReference tr : typeRefs) {
XmlJavaTypeAdapter xjta = tr.get(XmlJavaTypeAdapter.class);
Adapter<Type,Class> a=null;
XmlList xl = tr.get(XmlList.class);
// eventually compute the in-memory type
Class erasedType = nav.erasure(tr.type);
if(xjta!=null) {
a = new Adapter<Type,Class>(xjta.value(),nav);
}
if(tr.get(XmlAttachmentRef.class)!=null) {
a = new Adapter<Type,Class>(SwaRefAdapter.class,nav);
hasSwaRef = true;
}
if(a!=null) {
erasedType = nav.erasure(a.defaultType);
}
Name name = nameBuilder.createElementName(tr.tagName);
InternalBridge bridge;