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