added glue functionality to CriteriaBuilder