private @Nullable ConfirmedConsent getConfirmedConsent(String consentId) {
    final Consent defConsent = getDefaultConsent(consentId);
    if (defConsent != null && defConsent.isDeleted()) {
      return null;
    }
    return loadConfirmedConsents().get(defConsent != null? defConsent.getId() : lookupConsentID(consentId));
  }
private @Nullable ConfirmedConsent getConfirmedConsent(String consentId)