return navigationResource(id, context);
}
private NavigationManagementResource navigationResource(SiteId siteId, OperationContext context) {
requireSite(siteId, context);
Navigation navigation = portal.getNavigation(siteId);
if (navigation == null) {
throw new ResourceNotFoundException("Navigation does not exist for site " + siteId);
}
return new NavigationManagementResource(navigation, modelProvider);