addTable = true;
	public void main(IWContext iwc){				Table table = new Table();		table.setCellpadding(0);		table.setCellspacing(0);		int column = 1;		int pageID = this.getParentPageID();		boolean addTable = false;				if(iwc.isLoggedOn()){			try{				User newUser = iwc.getCurrentUser();				int homePageID = getUserBusiness(iwc).getHomePageIDForUser(newUser);				if(homePageID!=-1){					Link link = new Link();					link.setPage(homePageID);					link.setText(getResourceBundle(iwc).getLocalizedString(HOME_PAGE_KEY,HOME_PAGE_KEY_VALUE));					if (homePageID == pageID) {						if (_selectedLinkStyleClass != null)							link.setStyleClass(_selectedLinkStyleClass);						else if (_selectedLinkStyle != null)							link.setStyleAttribute(_selectedLinkStyle);					}					else {						if (_linkStyleClass != null)							link.setStyleClass(_linkStyleClass);						else if (_linkStyle != null)							link.setStyleAttribute(_linkStyle);					}										if (_iconImage != null) {						addTable = true;						table.add(_iconImage,column++,1);						if (_spaceBetween > 0)							table.setWidth(column++, 1, String.valueOf(_spaceBetween));					}					table.add(link,column,1);					if (!addTable) {						add(link);					}				}			}			catch(Exception e){				e.printStackTrace();				}		}		else {			if (_showNotLoggedOn) {				Text text = new Text(getResourceBundle(iwc).getLocalizedString(HOME_PAGE_KEY,HOME_PAGE_KEY_VALUE));				if (_loggedOffStyle != null)					text.setFontStyle(_loggedOffStyle);				if (_loggedOffIconImage != null) {					table.add(_loggedOffIconImage,column++,1);					if (_spaceBetween > 0)						table.setWidth(column++, 1, String.valueOf(_spaceBetween));				}				table.add(text,column,1);				if (!addTable) {					add(text);				}			}			}		if (addTable) {			add(table);		}	}