if (doLog) start = System.currentTimeMillis();
// old: li = this.getSession().find(query, value, type);
Query qu = this.getSession().createQuery(query);
qu.setParameter(0, value, type);
li = qu.list();
if (doLog) {
long time = (System.currentTimeMillis() - start);
logQuery("find (time "+time+", res " +(li == null? "null": ""+li.size())+")(trans "+trx.hashCode()+")", new Object[] {value}, new Type[] {type}, query);
}