Tuple result = null;
List<Tuple> results = query.getResultList();
if (results == null || results.size() == 0) {
LOG.debug("EGDS: Cannot find flight from afttab");
LOG.debug("CriteriaQuery: {}",
query.unwrap(org.hibernate.Query.class).getQueryString());
// LOG.debug("CriteriaQuery: {}", cq);
} else if (results.size() != 1) {
LOG.debug("EGDS: More than 1 record found for flight from afttab");
LOG.debug("CriteriaQuery: {}",
query.unwrap(org.hibernate.Query.class).getQueryString());