if (!(ctx instanceof Context))
throw new NotContextException(ContainerJNDIManager.JNDI_RESOURCES.getString(
"WinstoneContext.NotContext", new String[] {
bindName.get(0), ctx.getClass().getName() }));
else if (ctx == null)
throw new NameNotFoundException(ContainerJNDIManager.JNDI_RESOURCES.getString(
"WinstoneContext.NameNotFound", bindName.get(0)));
else
try {
if (allowOverwrites)
((Context) ctx).rebind(bindName.getSuffix(1), value);