public LdapContext getInnermostDelegateLdapContext ( ) { final LdapContext delegateLdapContext = this . getDelegateLdapContext ( ) ; if ( delegateLdapContext instanceof DelegatingLdapContext ) { return ( ( DelegatingLdapContext ) delegateLdapContext ) . getInnermostDelegateLdapContext ( ) ; } return delegateLdapContext ; }
Recursivley inspect delegates until a non - delegating ldap context is found .