for( RuntimeElementInfo n : typeSet.getAllElements() ) {
ElementBeanInfoImpl bi = getOrCreate(n);
if(n.getScope()==null)
rootMap.put(n.getElementName(),bi);
RuntimeClassInfo scope = n.getScope();
Class scopeClazz = scope==null?null:scope.getClazz();
Map<QName,ElementBeanInfoImpl> m = elements.get(scopeClazz);
if(m==null) {
m = new LinkedHashMap<QName, ElementBeanInfoImpl>();
elements.put(scopeClazz,m);
}