private ExportResult<MediaContainerResource> mergeResults(
      ExportResult<PhotosContainerResource> photoResult,
      ExportResult<VideosContainerResource> videoResult) {
    ResultType resultType = ResultType.merge(photoResult.getType(), videoResult.getType());

    Collection<MediaAlbum> albums = mergeAlbums(
        photoResult.getExportedData().getAlbums(),
        videoResult.getExportedData().getAlbums());

    MediaContainerResource exportData = new MediaContainerResource(albums,
        photoResult.getExportedData().getPhotos(),
        videoResult.getExportedData().getVideos());

    ContinuationData cd =
        mergeContinuationData(photoResult.getContinuationData(), videoResult.getContinuationData());

    return new ExportResult<>(resultType, exportData, cd);
  }
Allows using existing Photo and Video adapters to create a Media adapter.
portability-spi-transfer/src/main/java/org/datatransferproject/spi/transfer/provider/converter/MediaExporterDecorator.java