code: public List<MavenArtifact> search(Dependency dependency) throws IOException {
  
          final String sha1sum = dependency.getSha1sum();
          final URL url = buildUrl(sha1sum);
          final HttpURLConnection conn = connect(url);
          final int responseCode = conn.getResponseCode();
          if (responseCode == 200) {
              return processResponse(dependency, conn);
          }
          throw new IOException("Could not connect to Artifactory " + url + " (" + responseCode + "): " + conn.getResponseMessage());
  
      }
docs: Searches the configured Central URL for the given hash (MD5, SHA1 and
  SHA256). If the artifact is found, a <code>MavenArtifact</code> is
  populated with the GAV.
  
  @param dependency the dependency for which to search (search is based on
  hashes)
  @return the populated Maven GAV.
  @throws FileNotFoundException if the specified artifact is not found
  @throws IOException if it's unable to connect to the specified repository