public virtual void endNestedFilter(int rfcType) { if (rfcType == NOT) { //if this is a Not than Not should be the second thing on the stack filterStack.Pop(); } int topOfStackType = ((Asn1Object) filterStack.Peek()).getIdentifier().Tag; if (topOfStackType != rfcType) { throw new LdapLocalException("Missmatched ending of nested filter", LdapException.FILTER_ERROR); } filterStack.Pop(); return ; }