Page page = PageData.getPage(pageDTO.getUri());
int accessLevel = module.getAccessLevel(user.getRole());
if(accessLevel >= ModuleHelper.ADD_EDIT || (accessLevel == ModuleHelper.ADD && page.getCreator().equals(user))) {
if(PageData.updatePage(pageDTO) == null)
throw new ServerException("Page could not be saved. Please try again.");
} else {
throw new UserException();
}
}