class ConsentEntity extends InstanceDependableEntity implements Authorisable {

    public boolean shouldConsentBeExpired() {
        if (ConsentType.getByValue(getConsentType()) == ConsentType.PIIS_TPP) {
            return false;
        }

        return !this.getConsentStatus().isFinalisedStatus()
                   && (this.isExpiredByDate() || this.isNonReccuringAlreadyUsed());
    }

}