throws IOException, ClassNotFoundException, InterruptedException {
// find/wait for lookup _service
final long startTime = System.currentTimeMillis();
ServiceRegistrar serviceRegistrar = null;
final LookupLocator lookup = new LookupLocator(JINI_URL_LOCALHOST);
while (serviceRegistrar == null
&& (System.currentTimeMillis() - startTime < (retryTimeoutSecs * 1000))) {
try {
serviceRegistrar = lookup.getRegistrar();
} catch (ConnectException e) {
Thread.sleep(500);
} catch (SocketException e) {
Thread.sleep(500);
} catch (EOFException e) {