private static boolean isProductConsentOfKind(final String consentKind, String consentId) {
    return consentKind != null && consentId.startsWith(consentKind) && (consentId.length() == consentKind.length() || consentId.charAt(consentKind.length()) == '.');
  }
private static boolean isProductConsentOfKind(final String consentKind, String consentId)