public void removeParentRelation(long osmId){
  if (parentRelations != null) {
    ArrayList<Relation> tempRelList=new ArrayList<Relation>(parentRelations);
    for (    Relation r : tempRelList) {
      if (osmId == r.getOsmId())       parentRelations.remove(r);
    }
  }
}

public void removeParentRelation ( long osmId ) { if ( parentRelations != null ) { ArrayList < Relation > tempRelList = new ArrayList < Relation > ( parentRelations ) ; for ( Relation r : tempRelList ) { if ( osmId == r . getOsmId ( ) ) parentRelations . remove ( r ) ; } } }
remove reference to parent relation
