question: protected String [ ] removeBlacklist ( String [ ] options ) { Hashtable < String , Option > pool ; Option option ; Enumeration < Option > enm = listOptions ( ) ; pool = new Hashtable < String , Option > ( ) ; while ( enm . hasMoreElements ( ) ) { option = enm . nextElement ( ) ; if ( isOnBlacklist ( option . name ( ) ) ) { pool . put ( option . name ( ) , option ) ; } } Enumeration < String > enm2 = pool . keys ( ) ; while ( enm2 . hasMoreElements ( ) ) { option = pool . get ( enm2 . nextElement ( ) ) ; try { if ( option . numArguments ( ) == 0 ) { Utils . getFlag ( option . name ( ) , options ) ; } else { Utils . getOption ( option . name ( ) , options ) ; } } catch ( Exception e ) { e . printStackTrace ( ) ; } } return options ; }
target:  removes all the options from the options array that are blacklisted