return populateModel(site, modelProvider.newModel(ModelObject.class), context.getAddress());
}
private Site requireSite(SiteId id, OperationContext context) {
Site site = portal.getSite(id);
if (site == null) throw new ResourceNotFoundException("Site not found for " + id);
// Verify current user has access to site
verifyAccess(site, context);
return site;