if (lazy) {
// need to use the correct lazy type to allow instanceof to work
if (attribute instanceof AssociationAttributeInfo) {
switch (((AssociationAttributeInfo) attribute).getType()) {
case MANY_TO_ONE:
value = new LazyManyToOneAttribute(featureModel, featureBean, name);
break;
case ONE_TO_MANY:
value = new LazyOneToManyAttribute(featureModel, featureBean, name);
break;
default: