// wrap attributes and accessors with their own class for lazy resolving
for (Iterator iter = structDef.getAttributeDefinitions().iterator(); iter.hasNext();) {
Object obj = iter.next();
if (obj instanceof AttributeDef) {
AttributeDefinition attr = (AttributeDefinition) obj;
attributes.put(attr.getName(), new Attribute(attr));
}
}
for (Iterator iter = structDef.getAccessorDefinitions().iterator(); iter.hasNext();) {
Object obj = iter.next();
if (obj instanceof AccessorDefinition) {