class RRestoreBlobStrategy extends BaseRestoreBlobStrategy<RRestoreBlobData> {

  @Override
  protected Query getComponentQuery(final RRestoreBlobData data) throws IOException {
    RRestoreFacet facet = getRestoreFacet(data);
    RestoreBlobData blobData = data.getBlobData();
    Map<String, String> attributes;
    try (InputStream inputStream = blobData.getBlob().getInputStream()) {
      attributes = facet.extractComponentAttributesFromArchive(blobData.getBlobName(), inputStream);
    }

    return facet.getComponentQuery(attributes);
  }

  @Inject public  RRestoreBlobStrategy(
      final NodeAccess nodeAccess,
      final RepositoryManager repositoryManager,
      final BlobStoreManager blobStoreManager,
      final DryRunPrefix dryRunPrefix);

}