public void addParentRelations(ArrayList<Relation> relations){
  if (parentRelations == null) {
    parentRelations=new ArrayList<Relation>();
  }
  for (  Relation r : relations) {
    if (!parentRelations.contains(r)) {
      addParentRelation(r);
    }
  }
}

public void addParentRelations ( ArrayList < Relation > relations ) { if ( parentRelations == null ) { parentRelations = new ArrayList < Relation > ( ) ; } for ( Relation r : relations ) { if ( ! parentRelations . contains ( r ) ) { addParentRelation ( r ) ; } } }
add all parent relations , avoids dups
