NamingException error = new ServiceUnavailableException(
exception.getMessage());
error.setRootCause(exception);
throw error;
}
Namespace namespace = new StandardNamespace(parser);
properties.put(RemoteContext.NAMING_PROVIDER, provider);
properties.put(RemoteContext.NAMESPACE, namespace);
RemoteContext root = new RemoteContext(properties, parser.parse(""));
return new ORBRemoteContext(root);
}