protected LdapNamingEnumeration getReferredResults(LdapReferralContext refCtx) throws NamingException { // repeat the original operation at the new context return (LdapSearchEnumeration) refCtx.search(searchArgs.name, searchArgs.filter, searchArgs.cons); }