Server acctServer = Provisioning.getInstance().getServer(acct); Server localServer = Provisioning.getInstance().getLocalServer(); if (acctServer.getId().equals(localServer.getId())) {
if (Provisioning.onLocalServer(acct)) {
		private WikiById(WikiContext ctxt, Account acct, int fid) throws ServiceException {			if (!acct.getBooleanAttr("zimbraFeatureNotebookEnabled", false))				throw WikiServiceException.NOT_ENABLED();						mWikiWords = new HashMap<String,WikiPage>();			mWikiAccount = acct.getId();			mFolderId = fid;						Server acctServer = Provisioning.getInstance().getServer(acct);			Server localServer = Provisioning.getInstance().getLocalServer();			if (acctServer.getId().equals(localServer.getId())) {				Mailbox mbox = Mailbox.getMailboxByAccount(acct);				if (mbox == null)					throw WikiServiceException.ERROR("wiki account mailbox not found");				Folder f = mbox.getFolderById(ctxt.octxt, mFolderId);				mParentFolderId = f.getFolderId();				loadWiki(ctxt, mbox);				mbox.addListener(WikiSession.getInstance());			} else {				// for some reason if the account is not local, but we have folder id.				throw WikiServiceException.ERROR("cannot access remote account "+acct.getName());			}		}