code: public static ChunksManifest createManifestFrom(ChunksManifestDocument doc) {
          ChunksManifestType manifestType = doc.getChunksManifest();
  
          HeaderType headerType = manifestType.getHeader();
          ChunksManifest.ManifestHeader header = createHeaderFromElement(
              headerType);
  
          ChunksType chunksType = manifestType.getChunks();
          List<ChunksManifestBean.ManifestEntry> entries = createEntriesFromElement(
              chunksType);
  
          ChunksManifestBean manifestBean = new ChunksManifestBean();
          manifestBean.setHeader(header);
          manifestBean.setEntries(entries);
  
          return new ChunksManifest(manifestBean);
      }
docs: This method binds a ChunksManifest xml document to a ChunksManifest
  object
  
  @param doc ChunksManifest xml document
  @return ChunksManifest object