} catch (SQLException e) {
log.error("could not call database with sql " + sql, e);
throw new IllegalStateException("could not get value from " + sql);
} finally {
broker.freeConnection(con);
}
}
/**
* Returns a new integer based PkValue for the specified entity. If the