* Attaches a <code>SipServletInvokerValve</code> to a <code>Context</code>
* pipeline and registers the valve with the SIM. The initialization steps
* of the valve are also executed.
*/
private void initializeServletDispatcher() {
ServletDispatcher dispatcher = new ServletDispatcher(convergedContext.getSipSessionManager());
dispatcher.setSipApplicationModel(convergedContext.getSipApplication());
context.getPipeline().addValve(dispatcher);
// Initialize all the servlet wrappers upon initialization of the context.
// Must do this after adding the valve to the pipeline, so that the parent
// container of the valve and it's Loader are initialized.
dispatcher.setSipFactory(convergedContext.getSipFactory());
dispatcher.initialize();
convergedContext.setDispatcher(dispatcher);
}