added resourceService.deleteById(id, clazz);
resourceRepository.deleteById(id, clazz);