public ExpressionTree getExpressionTree(final Collection<T> objects) throws HBqlException {
final ExpressionTree expressionTree;
if (objects == null || objects.size() == 0) {
expressionTree = ExpressionTree.newExpressionTree(null, new BooleanLiteral(true));
expressionTree.setMappingContext(null);
expressionTree.setAllowColumns(false);
}
else {
// Grab the first object to derive the mapping