}
}
private <T>T saveAndReloadUniqueFromDB(Object object, String reloadQuery, Class<T> resultType) {
try {
IEvolizerSession s = fSessionHandler.getCurrentSession(fDBUrl);
s.startTransaction();
s.saveObject(object);
s.endTransaction();
s.close();
s = fSessionHandler.getCurrentSession(fDBUrl);
T result = s.uniqueResult(reloadQuery, resultType);
return result;
} catch (EvolizerException e) {
fail(e.getMessage());
return null;
}