log.debug("storing detached object: "+obj.toString());
// Object has been written to database, but instance passed in
// is not a persistent instance, so must be loaded into session.
PersistentObject vo =
(PersistentObject)session.load(obj.getClass(),obj.getId());
vo.setData(obj);
obj = vo;
}
}