// Make sure there is a home page
ResourceURI homeURI = new ResourceURIImpl(Page.TYPE, site, "/");
if (!existsInAnyVersion(homeURI)) {
try {
Page page = new PageImpl(homeURI);
User siteAdmininstrator = new UserImpl(site.getAdministrator());
page.setTemplate(site.getDefaultTemplate().getIdentifier());
page.setCreated(siteAdmininstrator, new Date());
page.setPublished(siteAdmininstrator, new Date(), null);
put(page, true);
logger.info("Created homepage for {}", site.getIdentifier());