question: public boolean hasCapabilities ( List < String > capabilities ) { String [ ] arr = new String [ capabilities . size ( ) ] ; capabilities . toArray ( arr ) ; return hasCapabilities ( arr ) ; }
target:  Test to see if the capabilities array contains 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.