public void removeParentRelation(Relation relation){
  if (parentRelations != null) {
    parentRelations.remove(relation);
  }
}

public void removeParentRelation ( Relation relation ) { if ( parentRelations != null ) { parentRelations . remove ( relation ) ; } }
remove reference to parent relation does not check for id
