code: @Override
  	public void stop() throws LifecycleException {
      	super.stop();
  
          /*
           * Service should be stopped and removed otherwise in between start/stop/start of the container,
           * javax.management.InstanceAlreadyExistsException: mss-tomcat-embedded-6:type=SipApplicationDispatcher
           * exception will occur, which is related to the JMX MBeanServer, when tomcat embedded tries to register the MBean, the 
           * instance is already there.
           */
          
  		if(service != null) {			
  			try {
  				service.stop();
  				service.destroy();
  			} catch (LifecycleException e) {
  				log.error("service already stopped ", e);
  			}		
  			/*
  			 * Issue: http://code.google.com/p/mobicents/issues/detail?id=3116
  			 * 
  			 * We need to force SipFactory to create a new SipStack each time it is asked. By default SipFactory will return the previously 
  			 * created SipStack if it exists. This will create a problem in a scenario like:
  			 * 
  			 * 1. container starts -> SipFactory creates sipStack
  			 * 2. System.setProperties such as as properties related to SSL
  			 * 3. container.restart -> SipFactory returns previously created SipStack that is not aware of the new System properties
  			 * 
  			 * Thats why the SipFactory needs to be reset in order to create a new SipStack every time the 
  			 * SipFactory.getInstance().createSipFactory (SipStandardService.initialize()) method is called.  
  			 */
  			SipFactory.getInstance().resetFactory();
  		}
  
      }
docs: /* (non-Javadoc)
  @see org.jboss.arquillian.container.mobicents.servlet.sip.embedded_1.MobicentsSipServletsEmbedded#stop()