// + entity.getVersion() + " current " + current);
if (entity.getId() == null) {
PageEntity found = getDao().getPageDao().getByUrlVersion(
entity.getFriendlyURL(), entity.getVersion());
if (found == null) {
throw new DaoTaskException("Page not found while "
+ "skipping save operation. " + entity.getFriendlyURL()
+ " version=" + entity.getVersion());
}
entity.setId(found.getId());
}