public void writeExpression(Expression oldExp){
  boolean internal=this.internal;
  this.internal=true;
  Object oldValue=getValue(oldExp);
  if (get(oldValue) == null || (oldValue instanceof String && !internal)) {
    getValueData(oldValue).exp=oldExp;
    super.writeExpression(oldExp);
  }
  this.internal=internal;
}

public void writeExpression ( Expression oldExp ) { boolean internal = this . internal ; this . internal = true ; Object oldValue = getValue ( oldExp ) ; if ( get ( oldValue ) == null || ( oldValue instanceof String && ! internal ) ) { getValueData ( oldValue ) . exp = oldExp ; super . writeExpression ( oldExp ) ; } this . internal = internal ; }
records the expression so that the encoder will produce the actual output when the stream is flushed . < p > this method should only be invoked within the context of initializing a persistence delegate or setting up an encoder to read from a resource bundle . < p > for more information about using resource bundles with the xmlencoder , see http : / / java . sun . com / products / jfc / tsc / articles / persistence4 / # i18n
