code: @Deprecated
      public StringBuilder writeToBuilder(Bean bean, boolean rootType) {
          try {
              write(bean, rootType, this.builder);
          } catch (IOException ex) {
              throw new IllegalStateException(ex);
          }
          return builder;
      }
docs: Writes the bean to the {@code StringBuilder}.
  
  @param bean  the bean to output, not null
  @param rootType  true to output the root type
  @return the builder, not null
  @deprecated Use {@link #write(Bean, boolean, Appendable)}