question: private ServiceRegistrar [ ] buildServiceRegistrar ( ) { int k = 0 ; ServiceRegistrar [ ] proxys = new ServiceRegistrar [ discoveredLocators . size ( ) ] ; Iterator iter = discoveredLocators . iterator ( ) ; while ( iter . hasNext ( ) ) { LocatorReg reg = ( LocatorReg ) iter . next ( ) ; proxys [ k ++ ] = reg . proxy ; } return proxys ; }
target:  From each element of the set of LocatorReg objects that correspond to lookup services that have been discovered, this method extracts the ServiceRegistrar reference and returns all of the references in an array of ServiceRegistrar.