String[] memberGroups = (String[])memberGroupsList.get(indx);
ServiceRegistrar lookupProxy = null;
if(implClassname.equals("com.sun.jini.test.services.lookupsimulator.LookupSimulatorImpl"))
{
/* Use either a random or an explicit locator port */
DiscoveryProtocolSimulator generator =
new DiscoveryProtocolSimulator(config, memberGroups, manager, port);
genMap.put( generator, memberGroups );
lookupProxy = generator.getLookupProxy();
} else {//start a non-simulated lookup service implementation
logger.log(Level.FINER, "Starting lookup for host " + serviceHost);
lookupProxy = manager.startLookupService(serviceHost); // already prepared
genMap.put( lookupProxy, memberGroups );
}//endif