// the static page is new but one exists with the same ID already
// - increment the date/ID and try again
staticPage.setDate(new Date(staticPage.getDate().getTime() + 1));
putStaticPage(staticPage);
} else {
dao.storeStaticPage(staticPage);
staticPage.setPersistent(true);
cache.removeStaticPage(staticPage);
}
staticPage.getBlog().getSearchIndex().index(staticPage);