throw new IllegalArgumentException(ExceptionLocalization.buildMessage("unknown_bean_class", new Object[] { targetEntity }));
}
public <X, T, V extends T> Join<X, V> treat(Join<X, T> join, Class<V> type) {
JoinImpl parentJoin = (JoinImpl)join;
Join joinImpl = new JoinImpl<X, V>(parentJoin, this.metamodel.managedType(type), this.metamodel,
type, parentJoin.currentNode.treat(type), parentJoin.getModel(), parentJoin.getJoinType());
parentJoin.joins.add(joinImpl);
((FromImpl)joinImpl).isJoin = parentJoin.isJoin;
parentJoin.isJoin = false;
return joinImpl;