try {
JndiRequest request = reqCtx.getRequest();
if (request instanceof BindRequest) {
bind((BindRequest)request);
return new JndiReply();
} else if (request instanceof UnbindRequest) {
unbind((UnbindRequest)request);
return new JndiReply();
} else if (request instanceof CreateSubcontextRequest) {
createSubcontext((CreateSubcontextRequest)request);
return new JndiReply();
} else if (request instanceof DestroySubcontextRequest) {
destroySubcontext((DestroySubcontextRequest)request);
return new JndiReply();
} else {
return new JndiError(new NamingException("Unknown operation"));
}
} catch (NotOwnerException noexc) {
if (Trace.logger.isLoggable(BasicLevel.DEBUG))