protected boolean isResidualMatch ( InternalQName itemName , T [ ] recipientDefinition ) { boolean containsResidual = false ; for ( int i = 0 ; i < recipientDefinition . length ; i ++ ) { if ( itemName . equals ( recipientDefinition [ i ] . getName ( ) ) ) return false ; else if ( Constants . JCR_ANY_NAME . equals ( recipientDefinition [ i ] . getName ( ) ) ) containsResidual = true ; } return containsResidual ; }
Return true if recipientDefinition contains Constants . JCR_ANY_NAME and doesn t contain definition with name itemName .