public ReferencedSiteRootResource(@PathParam(value = "site") String siteId,
@Context ServletContext servletContext) {
super();
log.debug("<init> with site {}", siteId);
SiteManager referencedSiteManager = ContextHelper.getServiceFromContext(
SiteManager.class, servletContext);
if (siteId == null || siteId.isEmpty()) {
log.error("Missing path parameter site={}", siteId);
throw new WebApplicationException(Response.Status.NOT_FOUND);
}
site = referencedSiteManager.getSite(siteId);
if (site == null) {
log.error("Site {} not found (no referenced site with that ID is present within the Entityhub",
siteId);
throw new WebApplicationException(Response.Status.NOT_FOUND);
}