SelectorName sourceName = node.getProperty(Property.SOURCE_NAME, SelectorName.class);
assert sourceName.equals(sourceName); // selector name already matches
potentiallyRemovableSources.add(node);
break;
case JOIN:
JoinCondition joinCondition = node.getProperty(Property.JOIN_CONDITION, JoinCondition.class);
JoinCondition newJoinCondition = replaceViewReferences(context, joinCondition, mappings, node);
node.getSelectors().clear();
node.setProperty(Property.JOIN_CONDITION, newJoinCondition);
node.addSelectors(Visitors.getSelectorsReferencedBy(newJoinCondition));
List<Constraint> joinConstraints = node.getPropertyAsList(Property.JOIN_CONSTRAINTS, Constraint.class);
if (joinConstraints != null && !joinConstraints.isEmpty()) {