code: public static String createId(Entity vcfEntity) {
      String idStr =
          StringUtils.strip(vcfEntity.get(CHROM).toString())
              + "_"
              + StringUtils.strip(vcfEntity.get(POS).toString())
              + "_"
              + StringUtils.strip(vcfEntity.get(REF).toString())
              + "_"
              + StringUtils.strip(vcfEntity.get(ALT).toString())
              + "_"
              + StringUtils.strip(vcfEntity.get(ID).toString())
              + "_"
              + StringUtils.strip(vcfEntity.get(QUAL) != null ? vcfEntity.get(QUAL).toString() : "")
              + "_"
              + StringUtils.strip(
                  vcfEntity.get(FILTER) != null ? vcfEntity.get(FILTER).toString() : "");
  
      // use MD5 hash to prevent ids that are too long
      MessageDigest messageDigest;
      try {
        messageDigest = MessageDigest.getInstance("MD5");
      } catch (NoSuchAlgorithmException e) {
        throw new RuntimeException(e);
      }
      byte[] md5Hash = messageDigest.digest(idStr.getBytes(UTF_8));
  
      // convert MD5 hash to string ids that can be safely used in URLs
      return Base64.getUrlEncoder().withoutPadding().encodeToString(md5Hash);
    }
docs: Creates a internal molgenis id from a vcf entity
  
  @return the id