Permission (final String consentId) { final ConfirmedConsent confirmedConsent = getConfirmedConsent(consentId); return confirmedConsent == null? Permission.UNDEFINED : confirmedConsent.isAccepted()? Permission.YES : Permission.NO; }