class CompressedContentExtractor extends ComponentSupport {

  public boolean fileExists(final Payload payload, final String path, final String fileName) {
    try (InputStream projectAsStream = payload.openInputStream()) {
      return extract(projectAsStream, fileName, (ZipInputStream z) -> new NullInputStream(-1)) != null;
    }
    catch (IOException e) {
      log.warn("Unable to open content {}", path, e);
    }
    return false;
  }

}