AssociationSet as = new AssociationSet();
as.setName(association.getName());
FullQualifiedName asAssociationFqn = new FullQualifiedName(namespace, association.getName());
as.setAssociation(asAssociationFqn);
AssociationSetEnd asEnd1 = new AssociationSetEnd();
asEnd1.setEntitySet(getEntitySetName(association.getEnd1()));
asEnd1.setRole(association.getEnd1().getRole());
as.setEnd1(asEnd1);
AssociationSetEnd asEnd2 = new AssociationSetEnd();
asEnd2.setEntitySet(getEntitySetName(association.getEnd2()));
asEnd2.setRole(association.getEnd2().getRole());
as.setEnd2(asEnd2);
associationSets.add(as);
}
}