docs: private LdapEntry readConsentEntry(final String principal) {
          try {
              val filter = LdapUtils.newLdaptiveSearchFilter(this.searchFilter, CollectionUtils.wrapList(principal));
              LOGGER.debug("Locating consent LDAP entry via filter [{}] based on attribute [{}]", filter, this.ldap.getConsentAttributeName());
              val response =
                  LdapUtils.executeSearchOperation(this.connectionFactory, this.ldap.getBaseDn(), filter, this.ldap.getConsentAttributeName());
              if (LdapUtils.containsResultEntry(response)) {
                  val entry = response.getResult().getEntry();
                  LOGGER.debug("Locating consent LDAP entry [{}]", entry);
                  return entry;
              }
          } catch (final LdapException e) {
              LOGGER.debug(e.getMessage(), e);
          }
          return null;
      }