@Override
  public ImportResult importItem(UUID jobId, IdempotentImportExecutor idempotentExecutor,
      AD authData, MediaContainerResource data) throws Exception {
    PhotosContainerResource photosResource = MediaContainerResource.mediaToPhoto(data);
    ImportResult photosResult = photosImporter
        .importItem(jobId, idempotentExecutor, authData, photosResource);

    VideosContainerResource videosResource = MediaContainerResource.mediaToVideo(data);
    ImportResult videosResult = videosImporter
        .importItem(jobId, idempotentExecutor, authData, videosResource);

    return ImportResult.merge(photosResult, videosResult);
  }
Allows using existing Photo and Video adapters to create a Media adapter.
portability-spi-transfer/src/main/java/org/datatransferproject/spi/transfer/provider/converter/MediaImporterDecorator.java