docs: @Override
      public Filter createFilter(FilterConfig filterConfig) {
          Binding binding = new Binding();
          SecurityComponents sc = this.createSecurityComponents();
          binding.setVariable("securityComponents", sc);
          binding.setVariable("securityRealm",this);
          BeanBuilder builder = new BeanBuilder();
          builder.parse(filterConfig.getServletContext().getResourceAsStream("/WEB-INF/security/SecurityFilters.groovy"),binding);
          
          WebApplicationContext context = builder.createApplicationContext();
          
          return (Filter) context.getBean("legacy");
      }