if (Switch.getSwitch().getContainerType() == Switch.APPCLIENT_CONTAINER) { handler = new ClientContainerCallbackHandler(); } else { handler = new ServerContainerCallbackHandler(); }
handler.handle(callbacks);
((CallbackHandlerConfig)handler).setHandlerContext(handlerContext);