code: void writeRootBean(Bean bean, boolean rootTypeFlag) throws IOException {
          writeBean(bean, bean.getClass(), rootTypeFlag ? RootType.ROOT_WITH_TYPE : RootType.ROOT_WITHOUT_TYPE);
      }
docs: -----------------------------------------------------------------------