code: @Override
      public void build() throws IOException{
          generator.writeEndObject();
          generator.close();
          sb.append(baos.toString());
          
      }
docs: /*
  @see com.marklogic.contentpump.DocBuilder#build()
  @throws IOException