Added @Transactional to ResourceClasses