}
final List associationEnds = this.getManageableAssociationEnds();
for (int i = 0; i < associationEnds.size(); i++)
{
final AssociationEndFacade associationEnd = (AssociationEndFacade)associationEnds.get(i);
final Entity entity = (Entity)associationEnd.getType();
final Iterator identifierIterator = entity.getIdentifiers().iterator();
if (identifierIterator.hasNext())
{
final AttributeFacade identifier = (AttributeFacade)identifierIterator.next();
if (identifier != null)
{
if (buffer.length() > 0)
{
buffer.append(", ");
}
final ClassifierFacade type = identifier.getType();
if (type != null)
{
if (withTypes)
{
buffer.append(type.getFullyQualifiedName());
if (associationEnd.isMany())
{
buffer.append("[]");
}
buffer.append(' ');
}
buffer.append(associationEnd.getName());
}
}
}
}