// add joins and find terminating element
resetJoinStack();
PathComponent<DbAttribute, DbRelationship> lastComponent = null;
for (PathComponent<DbAttribute, DbRelationship> component : table
.resolvePath(pathExp, getPathAliases())) {
// do not add join for the last DB Rel
if (component.getRelationship() != null && !component.isLast()) {
dbRelationshipAdded(component.getRelationship(), component