}
if (name.isEmpty())
{
// Return this
return new NamingContext(null, parser.parse(""), this.getHAStub());
}
// is the name a context?
try
{
Node<String, Binding> n = this.m_cache.getRoot().getChild(Fqn.fromRelativeFqn(this.m_root, Fqn.fromString(name.toString())));
if (n != null)
{
Name fullName = (Name) name.clone();
return new NamingContext(null, fullName, this.getHAStub());
}
}
catch (CacheException ce)
{
// don't chain CacheException since JBoss Cache may not be on remote client's classpath