te = handlePathModifiers(scope, subjVar, te, objVar, contextVar, lowerBound, upperBound);
if (objVar.equals(subjVar)) {
Var objVarReplacement = createAnonVar();
te = handlePathModifiers(scope, startVar, te, objVarReplacement, contextVar,
lowerBound, upperBound);
SameTerm condition = new SameTerm(objVar, objVarReplacement);
te = handlePathModifiers(scope, startVar, te, objVar, contextVar, lowerBound,
upperBound);
te = handlePathModifiers(scope, startVar, te, nextVar, contextVar, lowerBound,
upperBound);
pathSequencePattern.addRequiredTE(te);
te = handlePathModifiers(scope, endVar, te, startVar, contextVar, lowerBound,
upperBound);
te = handlePathModifiers(scope, startVar, te, endVar, contextVar, lowerBound,
upperBound);
te = handlePathModifiers(scope, startVar, te, nextVar, contextVar, lowerBound,
upperBound);
te = handlePathModifiers(scope, startVar, te, nextVar, contextVar, lowerBound,
upperBound);