return new SameNodeJoinCondition(selector1, selector2);
}
// Only one side uses "jcr:path", and we cannot handle this ...
context.getProblems().addError(JcrI18n.equiJoinWithOneJcrPathPseudoColumnIsInvalid, selector1, selector2);
} else if ("jcr:path".equals(equiJoin.getProperty2Name())) {
SelectorName selector1 = equiJoin.selector1Name();
SelectorName selector2 = equiJoin.selector2Name();
// Only one side uses "jcr:path", and we cannot handle this ...
context.getProblems().addError(JcrI18n.equiJoinWithOneJcrPathPseudoColumnIsInvalid, selector1, selector2);
} else if ("mode:id".equals(equiJoin.getProperty1Name())) {
SelectorName selector1 = equiJoin.selector1Name();