class RestfulServletContainerListener extends ResteasyBootstrap implements ServletContextListener {

    @Override
    public void contextInitialized(ServletContextEvent sce) {<FILL_FUNCTION_BODY>}

    @Override
    public void contextDestroyed(ServletContextEvent sce) {
        super.contextDestroyed(sce);
    }

}

        ServletContext servletContext = sce.getServletContext();

        servletContext.setInitParameter("resteasy.injector.factory", RestfulInjectorFactory.class.getName());
        servletContext.setInitParameter(ResteasyContextParameters.RESTEASY_PROVIDERS,
                RpcExceptionMapper.class.getName());

        super.contextInitialized(sce);

        ServletRestServer.setResteasyDeployment(deployment);
    
<no_super_class>