throws NamingException
{
this.assertNotNull("name", name);
XcpBinding b = new XcpBinding(this.path, name.toString(), XcpBinding.ACTION_LOOKUP);
XcpResponse resp = null;
try {
resp = this.sender.send(b, this.handler);
} catch(java.io.IOException ex) {
NamingException nex = new NamingException(ex.getMessage());
nex.setRootCause(ex);
throw nex;
}
Object obj = ((XcpBinding)resp.getRootElement()).getValue();
if(obj == null) {
throw new javax.naming.NameNotFoundException(name.toString());
}
if(obj instanceof CreateCtx) {
return new ContextImpl(((CreateCtx)obj).getPath(), this.environment);