AstBuilder.toName(model.getReference()),
new JoinedModelGenerator(model).generateExpression());
}
private AstExpression<AstJoin> generateExpression() {
AstJoin from = generateTerm(model.getFromModel(), model.getFromCondition(), true);
AstJoin join = generateTerm(model.getJoinModel(), model.getJoinCondition(), false);
return new AstUnionExpression<AstJoin>(null, Arrays.asList(from, join));
}