code: public static UUID makeDeploymentHashForConfig(byte[] deploymentBytes) {
          String normalized = new String(deploymentBytes, StandardCharsets.UTF_8);
          Matcher matcher = XML_COMMENT_RE.matcher(normalized);
          normalized = matcher.replaceAll("");
          matcher = HOSTCOUNT_RE.matcher(normalized);
          normalized = matcher.replaceFirst("hostcount=\"0\"");
          return Digester.md5AsUUID(normalized);
      }
docs: Computes a MD5 digest (128 bits -> 2 longs -> UUID which is comprised of
  two longs) of a deployment file stripped of all comments and its hostcount
  attribute set to 0.
  
  @param deploymentBytes
  @return MD5 digest for for configuration