}
if (classes != null) {
for (Class<?> clazz : classes) {
ResourceGenerator resourceGenerator = new ResourceGenerator();
RootResource rootResource = resourceGenerator.generateResource(clazz);
if(rootResource != null) {
ResourceRepository.getInstance().addRootResource(rootResource);
}
InterceptorProvider interceptorProvider = resourceGenerator.generateInterceptorProvide(clazz);
if(interceptorProvider != null) {
ResourceRepository.getInstance().addInterceptorProvider(interceptorProvider);
}
}