/**
* Returns a collection of DbRelationships that use this attribute as a source.
*/
public static Collection<DbRelationship> getRelationshipsUsingAttributeAsSource(
DbAttribute attribute) {
Entity parent = attribute.getEntity();
if (parent == null) {
return Collections.EMPTY_LIST;
}
Collection<DbRelationship> parentRelationships = (Collection<DbRelationship>) parent
.getRelationships();
Collection<DbRelationship> relationships = new ArrayList<DbRelationship>(
parentRelationships.size());
// Iterator it = parentRelationships.iterator();
// while (it.hasNext()) {