}
for (Relation relation : relationsById.values()) {
OSMRelation ownRelation = new OSMRelation(
tagGroupForEntity(relation), relation.getId(),
relation.getMembers().size());
ownRelations.add(ownRelation);
relationMap.put(relation, ownRelation);
}
// add relation members
// (needs to be done *after* creation because relations can be members
// of other relations)
for (Relation relation : relationMap.keySet()) {
OSMRelation ownRelation = relationMap.get(relation);
for (org.openstreetmap.osmosis.core.domain.v0_6.RelationMember member : relation
.getMembers()) {
OSMElement memberObject = null;