public String toString(){
  StringWriter sw=new StringWriter();
  writeTo(sw);
  return sw.toString();
}

public String toString ( ) { StringWriter sw = new StringWriter ( ) ; writeTo ( sw ) ; return sw . toString ( ) ; }
convert the template and binding into a result string .
