*/
public int getPageId() {
HttpSession session = this.getHttpSession();
PageIdGenerator pageIdGenerator = (PageIdGenerator) session.getAttribute(this.pageIdGeneratorName);
if (pageIdGenerator == null) {
throw new HDIVException("session.nopageidgenerator");
}
int id = pageIdGenerator.getNextPageId();
// PageId must be greater than 0
if(id <= 0){
throw new HDIVException("Incorrect PageId generated [" + id + "]. PageId must be greater than 0.");
}