@Override
public void save(Object obj) {
if(obj instanceof DAOState) {
log.debug("SAVEEX: " + obj.toString());
DAOState ds = (DAOState) obj;
ds.save(getHibernateTemplate());
} else {
log.debug("SAVE: " + obj.toString());
if (obj instanceof EntityWithId) {
if (((EntityWithId)obj).getId() == 0) {
getHibernateTemplate().save(obj);