try {
DbLookup lookup = session.getDbLookup(entityId, connParams);
lookup.setAutoCommit(autoCommit);
return lookup.lookup(sql);
} catch (ServerDbException e) {
throw new EngineSessionException(e);
} catch (SQLException e) {
throw new EngineSessionException(e);
}
}