public String process(String value){
  if (value.indexOf('$') < 0) {
    return value;
  }
  try {
    source.append(value);
    parse();
    return text.toString();
  }
  finally {
    clear();
  }
}

public String process ( String value ) { if ( value . indexOf ( '$' ) < 0 ) { return value ; } try { source . append ( value ) ; parse ( ) ; return text . toString ( ) ; } finally { clear ( ) ; } }
this method is used to append the provided text and then it converts the buffered text to return the corrosponding text . the contents of the buffer remain unchanged after the value is buffered . it must be cleared if used as replacement only .
