}
}
NameComponent finalName =
new NameComponent(details.getNamePath().get(details.getNamePath().size() - 1), "");
try {
namingCtx.resolve(new NameComponent[] {finalName});
// no exception means that some object is already registered
// under this name, we need to crash here
throw new CorbaHostException(CorbaHostException.BINDING_IN_USE);
} catch (NotFound e) {
namingCtx.bind(new NameComponent[] {finalName}, servantObject);