question: public boolean hasAnyCapability ( String ... capabilities ) { for ( String capability : capabilities ) { if ( hasCapability ( capability ) ) return true ; } return false ; }
target:  Test to see if the capabilities array contains at least one capability in a given set of capabilities. See the individual Capability classes for acceptable capability values. See hasCapability: for a description of the wildcard feature provided by this method.