code: private boolean areHashFilesEqual(File hashFile1, File hashFile2,
              String remoteLocation) throws ResourceDownloadError {
          try {
              String resource1Hash = readFileToString(hashFile1, UTF_8);
              String resource2Hash = readFileToString(hashFile2, UTF_8);
  
              return resource1Hash.trim().equalsIgnoreCase(resource2Hash.trim());
          } catch (IOException e) {
              throw new ResourceDownloadError(remoteLocation, e.getMessage());
          }
      }
docs: Compares the hashes contained in the resource files. The hashes in the
  files are compared case-insensitively in order to support hexadecimal
  variations on a-f and A-F.
  
  @param hashFile1 {@link File}, the first hash file
  @param hashFile2 {@link File}, the second hash file
  @param remoteLocation {@link String}, the resource remote location
  @return <tt>boolean</tt> indicating <tt>true</tt>, if the hash files are
  equal, or <tt>false</tt> if the hash files are not equal
  @throws IOException Thrown if an IO error occurred reading the resource
  hashes