@Override
public void pageDependencySave(PageDependencyEntity entity)
throws DaoTaskException {
if (isSkip()) {
if (entity.getId() == null) {
PageDependencyEntity found = getDao().getPageDependencyDao()
.getByPageAndDependency(entity.getPage(),
entity.getDependency());
if (found == null) {
throw new DaoTaskException("PageDependency not found while "
+ "skipping save operation. " + entity.getPage());
}
entity.setId(found.getId());
}
}
else {
getDao().getPageDependencyDao().saveNoAudit(entity);
}