Provisioning prov = Provisioning.getInstance(); Account account = prov.get(Provisioning.AccountBy.id, accountId); Server acctServer = prov.getServer(account); Server localServer = prov.getLocalServer(); if (!acctServer.getId().equals(localServer.getId())) {
Account account = Provisioning.getInstance().get(Provisioning.AccountBy.id, accountId); if (!Provisioning.onLocalServer(account)) {
	public static WikiPage findPage(WikiContext ctxt, String accountId, int id) throws ServiceException {		Provisioning prov = Provisioning.getInstance();		Account account = prov.get(Provisioning.AccountBy.id, accountId);		Server acctServer = prov.getServer(account);		Server localServer = prov.getLocalServer();		if (!acctServer.getId().equals(localServer.getId())) {			throw new WikiServiceException.NoSuchWikiException("not on local host");		}		Mailbox mbox = Mailbox.getMailboxByAccount(account);		MailItem item = mbox.getItemById(ctxt.octxt, id, MailItem.TYPE_UNKNOWN);		String subject = item.getSubject();		int folderId = item.getFolderId();		Wiki w = Wiki.getInstance(ctxt, accountId, folderId);		return w.lookupWiki(subject);	}