public Relationship getEfferentRelationshipWith(Element element) {
        if (element == null) {
            return null;
        }

        for (Relationship relationship : relationships) {
            if (relationship.getDestination().equals(element)) {
                return relationship;
            }
        }

        return null;
    }
public Relationship getEfferentRelationshipWith ( Element element ) { if ( element == null ) { return null ; } for ( Relationship relationship : relationships ) { if ( relationship . getDestination ( ) . equals ( element ) ) { return relationship ; } } return null ; }
Gets the efferent (outgoing) relationship with the specified element.

@param element   the element to look for
@return  a Relationship object if an efferent relationship exists, null otherwise