throw new NamingException(ContainerJNDIManager.JNDI_RESOURCES.getString(
"WinstoneContext.AlreadyExists", name.toString()));
else if (childName.size() > 1) {
Object ctx = lookup(childName.get(0));
if (!(ctx instanceof Context))
throw new NotContextException(ContainerJNDIManager.JNDI_RESOURCES.getString(
"WinstoneContext.NotContext", new String[] {
childName.get(0), ctx.getClass().getName() }));
else if (ctx == null)
throw new NameNotFoundException(ContainerJNDIManager.JNDI_RESOURCES.getString(
"WinstoneContext.NameNotFound", childName.get(0)));