public void assignId(Object object) {
try {
getSession().save(object);
} catch (Exception e) {
// NOTE that Error's are not caught because that might halt the JVM and mask the original Error.
throw new JbpmPersistenceException("couldn't assign id to "+object, e);
}
}