/*
  * (non-Javadoc)
  *
  * @see
  *
  * org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
  * #addInterceptors(org.springframework.web.servlet.config.annotation.
  * InterceptorRegistry)
  */
 @Override
 public void addInterceptors(InterceptorRegistry registry) {
   InterceptorRegistration securityInterceptor =
       registry.addInterceptor(new BaseSecurityInterceptor(webConsoleProperties));
   securityInterceptor.addPathPatterns("/secure/**");
   registry.addInterceptor(new BaseCleanNotificationInterceptor());
 }
 @Override
 protected void addInterceptors(InterceptorRegistry registry) {
   for (MappedInterceptor interceptor : mappedInterceptors) {
     InterceptorRegistration registration =
         registry.addInterceptor(interceptor.getInterceptor());
     if (interceptor.getPathPatterns() != null) {
       registration.addPathPatterns(interceptor.getPathPatterns());
     }
   }
 }