protected void continueWrite(){
  if (log.isDebugEnabled()) {
    log.debug("Start continueWrite");
  }
  Iterator<VariableValue> i=variables.iterator();
  while (i.hasNext()) {
    VariableValue v=i.next();
    if (v.isToWrite() && (!writingChanges || v.isChanged())) {
      amWriting=true;
      setBusy(true);
      log.debug("request write of " + v.label() + " writing changes "+ writingChanges);
      if (writingChanges) {
        v.writeChanges();
      }
 else {
        v.writeAll();
      }
      log.debug("return from starting write request");
      return;
    }
  }
  amWriting=false;
  super.setState(STORED);
  setBusy(false);
  log.debug("End continueWrite, nothing to do");
}

protected void continueWrite ( ) { if ( log . isDebugEnabled ( ) ) { log . debug ( "Start continueWrite" ) ; } Iterator < VariableValue > i = variables . iterator ( ) ; while ( i . hasNext ( ) ) { VariableValue v = i . next ( ) ; if ( v . isToWrite ( ) && ( ! writingChanges || v . isChanged ( ) ) ) { amWriting = true ; setBusy ( true ) ; log . debug ( "request write of " + v . label ( ) + " writing changes " + writingChanges ) ; if ( writingChanges ) { v . writeChanges ( ) ; } else { v . writeAll ( ) ; } log . debug ( "return from starting write request" ) ; return ; } } amWriting = false ; super . setState ( STORED ) ; setBusy ( false ) ; log . debug ( "End continueWrite, nothing to do" ) ; }
see if there ' s anything to write , and if so do it .
