code: public static ChunksManifest createManifestFrom(InputStream xml) {
          try {
              ChunksManifestDocument doc = ChunksManifestDocument.Factory.parse(
                  xml);
              return ManifestElementReader.createManifestFrom(doc);
          } catch (XmlException e) {
              throw new DuraCloudRuntimeException(e);
          } catch (IOException e) {
              throw new DuraCloudRuntimeException(e);
          }
      }
docs: This method binds a ChunksManifest object to the content of the arg xml.
  
  @param xml manifest document to be bound to ChunksManifest object
  @return ChunksManifest object