if(rootResource != null) {
ResourceRepository.getInstance().addRootResource(rootResource);
}
InterceptorProvider interceptorProvider = resourceGenerator.generateInterceptorProvide(clazz);
if(interceptorProvider != null) {
ResourceRepository.getInstance().addInterceptorProvider(interceptorProvider);
}
}