question: Control [ ] convertControls ( Vector < Control > ctls ) throws NamingException { int count = ctls . size ( ) ; if ( count == 0 ) { return null ; } Control [ ] controls = new Control [ count ] ; for ( int i = 0 ; i < count ; i ++ ) { controls [ i ] = myResponseControlFactory . getControlInstance ( ctls . elementAt ( i ) ) ; if ( controls [ i ] == null ) { controls [ i ] = ControlFactory . getControlInstance ( ctls . elementAt ( i ) , this , envprops ) ; } } return controls ; }
target:  Narrow controls using own default factory and ControlFactory.