* @param expression The {@link Expression} to visit its parent hierarchy up to the clause
* @return <code>true</code> if the first parent being a clause is the <b>UNION</b> clause;
* <code>false</code> otherwise
*/
protected boolean isOwnedByUnionClause(Expression expression) {
EclipseLinkOwningClauseVisitor visitor = getOwningClauseVisitor();
try {
expression.accept(visitor);
return visitor.unionClause != null;
}
finally {
visitor.dispose();
}
}