}
return null;
}
protected Command buildResolveCommand(Relation relation, OsmPrimitive newPrimitive) {
final Relation modifiedRelation = new Relation(relation);
modifiedRelation.setMembers(null);
boolean isChanged = false;
for (int i=0; i < relation.getMembersCount(); i++) {
final RelationMember member = relation.getMember(i);
RelationMemberConflictDecision decision = getDecision(relation, i);
if (decision == null) {
modifiedRelation.addMember(member);
} else {
switch(decision.getDecision()) {
case KEEP:
final RelationMember newMember = new RelationMember(decision.getRole(),newPrimitive);
modifiedRelation.addMember(newMember);
isChanged |= ! member.equals(newMember);
break;
case REMOVE:
isChanged = true;
// do nothing