rmiRegistries.put(Integer.toString(port),
registry);
}
registry.unbind(serviceName);
} catch (RemoteException e) {
RMIHostRuntimeException rmiExec = new RMIHostRuntimeException(e.getMessage());
rmiExec.setStackTrace(e.getStackTrace());
throw rmiExec;
} catch (NotBoundException e) {
throw new RMIHostException(e.getMessage());
}
}