@Bean
 public FilterRegistrationBean securityFilterBean() {
   FilterRegistrationBean registrationBean = new FilterRegistrationBean();
   registrationBean.setFilter(openLRSAuthenticationFilter);
   List<String> urls = new ArrayList<String>(2);
   urls.add("/v1/*");
   registrationBean.setUrlPatterns(urls);
   registrationBean.setOrder(2);
   return registrationBean;
 }
 @Bean
 public FilterRegistrationBean corsFilterBean() {
   FilterRegistrationBean registrationBean = new FilterRegistrationBean();
   registrationBean.setFilter(corsFilter);
   List<String> urls = new ArrayList<String>(1);
   urls.add("/v1/*");
   registrationBean.setUrlPatterns(urls);
   registrationBean.setOrder(1);
   return registrationBean;
 }
 @Bean
 public FilterRegistrationBean oAuthFilterBean() {
   FilterRegistrationBean registrationBean = new FilterRegistrationBean();
   registrationBean.setFilter(oAuthFilter);
   List<String> urls = new ArrayList<String>(1);
   urls.add("/lti");
   registrationBean.setUrlPatterns(urls);
   registrationBean.setOrder(4);
   return registrationBean;
 }
 @Bean
 public FilterRegistrationBean validationFilterBean() {
   FilterRegistrationBean registrationBean = new FilterRegistrationBean();
   registrationBean.setFilter(xapiRequestValidationFilter);
   List<String> urls = new ArrayList<String>(1);
   urls.add("/v1/xAPI/*");
   registrationBean.setUrlPatterns(urls);
   registrationBean.setOrder(3);
   return registrationBean;
 }
 @Bean
 public FilterRegistrationBean authFilter() {
   AuthFilter authFilter = new AuthFilter();
   FilterRegistrationBean filterRegBean = new FilterRegistrationBean();
   filterRegBean.setFilter(authFilter);
   List<String> urlPatterns = new ArrayList<String>();
   urlPatterns.add("/*");
   filterRegBean.setUrlPatterns(urlPatterns);
   return filterRegBean;
 }
 @Bean
 @ConditionalOnMissingBean(name = "jerseyFilterRegistration")
 @ConditionalOnProperty(prefix = "spring.jersey", name = "type", havingValue = "filter")
 public FilterRegistrationBean jerseyFilterRegistration() {
   FilterRegistrationBean registration = new FilterRegistrationBean();
   registration.setFilter(new ServletContainer(this.config));
   registration.setUrlPatterns(Arrays.asList(this.path));
   registration.setOrder(this.jersey.getFilter().getOrder());
   registration.addInitParameter(ServletProperties.FILTER_CONTEXT_PATH, stripPattern(this.path));
   addInitParameters(registration);
   registration.setName("jerseyFilter");
   registration.setDispatcherTypes(EnumSet.allOf(DispatcherType.class));
   return registration;
 }