@Override
 public void init(ServletConfig servletConfig) throws ServletException {
   super.init(servletConfig);
   logger.info("the simple sip servlet has been started");
   try {
     // Getting the Sip factory from the JNDI Context
     Properties jndiProps = new Properties();
     Context initCtx = new InitialContext(jndiProps);
     Context envCtx = (Context) initCtx.lookup("java:comp/env");
     sipFactory =
         (SipFactory)
             envCtx.lookup("sip/org.mobicents.servlet.sip.example.SimpleApplication/SipFactory");
     logger.info("Sip Factory ref from JNDI : " + sipFactory);
   } catch (NamingException e) {
     throw new ServletException("Uh oh -- JNDI problem !", e);
   }
 }
  /** {@inheritDoc} */
  @Override
  protected void doResponse(SipServletResponse response) throws ServletException, IOException {

    logger.info("SimpleProxyServlet: Got response:\n" + response);
    super.doResponse(response);
  }