private void addPage(String title, String url, String resource,
Long templateId, Integer sortIndex, boolean cached,
boolean searchable) {
String content = loadResource(resource);
PageEntity page = new PageEntity(title, url, templateId);
page.setCreateUserEmail("admin@test.com");
page.setModUserEmail("admin@test.com");
page.setState(PageState.APPROVED);
page.setSortIndex(sortIndex);
page.setCached(cached);
page.setSearchable(searchable);
getDao().getPageDao().save(page);
getDao().getPageDao().setContent(page.getId(),
LanguageEntity.ENGLISH_CODE, content);
log.info("Added " + title);
}