return joinImpl;
}
public <X, T, E extends T> CollectionJoin<X, E> treat(CollectionJoin<X, T> join, Class<E> type) {
CollectionJoinImpl parentJoin = (CollectionJoinImpl)join;
CollectionJoin joinImpl = null;
if (join instanceof BasicCollectionJoinImpl) {
joinImpl = new BasicCollectionJoinImpl<X, E>(parentJoin, this.metamodel, type,
parentJoin.currentNode.treat(type), parentJoin.getModel(), parentJoin.getJoinType());
} else {
joinImpl = new CollectionJoinImpl<X, E>((Path)join, this.metamodel.managedType(type), this.metamodel,