code: @Override
      public DirContextOperations searchForContext(LdapQuery query) {
          return searchForObject(query, new ContextMapper<DirContextOperations>() {
              @Override
              public DirContextOperations mapFromContext(Object ctx) throws javax.naming.NamingException {
                  return (DirContextOperations) ctx;
              }
          });
      }
docs: {@inheritDoc}