private boolean useRelation(Relation rel,RelationReference ref){
  if (rel.getLeftCardinality() != Cardinality.MANY && rel.getRightCardinality() != Cardinality.MANY) {
    return ref.getDirection() == RelationDirection.LEFT_TO_RIGHT;
  }
 else   if (rel.getLeftCardinality() != Cardinality.MANY) {
    return ref.getDirection() == RelationDirection.RIGHT_TO_LEFT;
  }
 else   if (rel.getRightCardinality() != Cardinality.MANY) {
    return ref.getDirection() == RelationDirection.LEFT_TO_RIGHT;
  }
 else {
    return false;
  }
}

private boolean useRelation ( Relation rel , RelationReference ref ) { if ( rel . getLeftCardinality ( ) != Cardinality . MANY && rel . getRightCardinality ( ) != Cardinality . MANY ) { return ref . getDirection ( ) == RelationDirection . LEFT_TO_RIGHT ; } else if ( rel . getLeftCardinality ( ) != Cardinality . MANY ) { return ref . getDirection ( ) == RelationDirection . RIGHT_TO_LEFT ; } else if ( rel . getRightCardinality ( ) != Cardinality . MANY ) { return ref . getDirection ( ) == RelationDirection . LEFT_TO_RIGHT ; } else { return false ; } }
check if needs to follow this relation automatically when defining dynamic sub - domains
