return e;
String[] oldAttrIds = searchControls.getReturningAttributes(); String[] newAttrIds = new String[oldAttrIds.length + 1]; System.arraycopy( oldAttrIds, 0, newAttrIds, 0, oldAttrIds.length ); newAttrIds[oldAttrIds.length] = Constants.ENTRY_DELETED.toLowerCase(); searchControls.setReturningAttributes( newAttrIds );
    public NamingEnumeration search( NextInterceptor nextInterceptor, LdapDN baseName, Map environment, ExprNode filter,        SearchControls searchControls ) throws NamingException    {        NamingEnumeration e = nextInterceptor.search( baseName, environment, filter, searchControls );        if ( searchControls.getReturningAttributes() != null )        {            return e;        }        return new SearchResultFilteringEnumeration( e, searchControls, InvocationStack.getInstance().peek(),            Constants.DELETED_ENTRIES_FILTER );    }