System.out.println ("DEBUG: alv.getAssignmentId()=" + alv.getAssignmentId());
  public void postFlush(Iterator entities) throws CallbackException  {    Transaction tx;        System.out.println("DEBUG: HousekeepingInterceptor.postFlush():");    while (entities.hasNext())    {      Object entity = entities.next();            if (entity instanceof AssignmentImpl)      {        AssignmentImpl assignment = (AssignmentImpl)entity;                if (assignment.hasUnsavedLimitValues)        {          System.out.println          	("DEBUG: assignment.getNumericId()=" + assignment.getNumericId());                  Set limitValues = assignment.getLimitValues();          System.out.println          	("DEBUG: limitValues.size()=" + limitValues.size());          Iterator limitValuesIterator = limitValues.iterator();          Session tempSession          	= this.sessionFactory.openSession(this.connection);                  try          {            tx = tempSession.beginTransaction();          }          catch (HibernateException he)          {            throw new CallbackException(he);          }                  while (limitValuesIterator.hasNext())          {            LimitValue limitValue = (LimitValue)(limitValuesIterator.next());            try            {              System.out.println              	("DEBUG: assignment.getNumericId().intValue()="            	   + assignment.getNumericId().intValue());                            /**               * Note that the AssignmentLimitValue constructor takes a               * Subsystem ID. That Subsystem ID is actually the ID of the               * Subsystem that's associated with this particlar Limit in case               * (someday in the future) that Limit comes from another               * Subsystem, or the shared "signet" subsystem.               *                * For now, the subsystemID of the assignment can be safely               * placed there.               */              AssignmentLimitValue alv              	= new AssignmentLimitValue           					(assignment.getNumericId().intValue(),           					 assignment.getFunction().getSubsystem().getId(),           			     limitValue.getLimit().getId(),           			     limitValue.getValue());              System.out.println              	("DEBUG: alv.getAssignmentId()=" + alv.getAssignmentId());              tempSession.save(alv);            }            catch (Exception e)            {              throw new CallbackException(e);            }          }                  try          {            tx.commit();            tempSession.close();          }          catch (HibernateException he)          {            throw new CallbackException(he);          }                    assignment.hasUnsavedLimitValues = false;        }      }    }  }