class ResourceTypeManagerCache {

    public Set<ResourceTypeDefinition> getResourceTypeDefinitions() {
        return this.resourceActivities.stream()
                .map(activityAndMetaInfo -> this.getResourceTypes(activityAndMetaInfo))
                .flatMap(Collection::stream)
                .collect(Collectors.toSet());
    }

    @Inject public  ResourceTypeManagerCache(CategoriesManagerCache categoriesManagerCache);

}