code: public void init(final ServletConfig config) throws ServletException {
          this.config = config;
          ServletContext servletContext = config.getServletContext();
          if (servletContext.getAttribute(WICKET_REQUIRED_ATTRIBUTE) == null) {
              servletContext.setAttribute(WICKET_REQUIRED_ATTRIBUTE, appFactory.getTmpDir());
          }
          wickFilter.init(new FilterConfig() {
  
              public ServletContext getServletContext() {
                  return config.getServletContext();
              }
  
              public Enumeration<String> getInitParameterNames() {
                  return config.getInitParameterNames();
              }
  
              public String getInitParameter(String name) {
                  return config.getInitParameter(name);
              }
  
              public String getFilterName() {
                  return appFactory.getApplicationName();
              }
          });
      }
docs: {@inheritDoc}