if (interceptors != null) {
for (Object interceptor : interceptors) {
if (interceptor instanceof HandlerInterceptor) {
handlerInterceptors.add((HandlerInterceptor) interceptor);
} else if (interceptor instanceof WebRequestInterceptor) {
handlerInterceptors.add(new WebRequestHandlerInterceptorAdapter((WebRequestInterceptor) interceptor));
} else if (interceptor instanceof MappedInterceptor) {
handlerInterceptors.add(new MappedInterceptorAdapter((MappedInterceptor)interceptor,
new UrlPathHelper(), new AntPathMatcher()));
}
}