public void appendTo(Appendable writer) throws java.io.IOException{
    if (toRender!=null){
      if (toRender instanceof Appender)
        ((Appender)toRender).appendTo(writer);
      else
        writer.append(toRender.toString());
    }
  }