code: public LdapContext getInnermostDelegateLdapContext() {
          final LdapContext delegateLdapContext = this.getDelegateLdapContext();
  
          if (delegateLdapContext instanceof DelegatingLdapContext) {
              return ((DelegatingLdapContext)delegateLdapContext).getInnermostDelegateLdapContext();
          }
  
          return delegateLdapContext;
      }
docs: Recursivley inspect delegates until a non-delegating ldap context is found.
  
  @return The innermost (real) DirContext that is being delegated to.