if (cl != null) {
addAttributes(gdi, p, cl, model);
Property newAttr = null;
if ( level01.getDataItems()[i] instanceof GroupDataItemOccurs ) {
GroupDataItemOccurs gdio = (GroupDataItemOccurs)level01.getDataItems()[i];
newAttr = c.createOwnedAttribute(className,p.getOwnedType(cl.getName()),gdio.getOccurs(),gdio.getOccurs());
}
else {
newAttr = c.createOwnedAttribute(className,p.getOwnedType(cl.getName()),1,1);
}
if (newAttr != null) {