code: public static String createDocumentFrom(ChunksManifestBean manifest) {
          ChunksManifestDocument doc = ChunksManifestDocument.Factory
              .newInstance();
          if (null != manifest) {
              ChunksManifestType manifestType = ManifestElementWriter.createChunksManifestElementFrom(
                  manifest);
              doc.setChunksManifest(manifestType);
          }
          return docToString(doc);
      }
docs: This method serializes the arg ChunksManifest object into an xml document.
  
  @param manifest ChunksManifest object to be serialized
  @return ChunksManifest xml document