template = new WikiTemplate(ww.getContents(ctxt), mAccountId, mKey);
template = new WikiTemplate(ww.getContents(ctxt), mAccountId, mKey, name);
	public WikiTemplate getTemplate(WikiContext ctxt, String name) throws ServiceException, IOException {		WikiTemplate template = (WikiTemplate)mTemplateMap.get(name);		if (template != null) {			//ZimbraLog.wiki.debug("found " + name + " from template cache");			return template;		}				Wiki wiki = Wiki.getInstance(ctxt, mAccountId, mKey);		WikiPage ww = wiki.lookupWiki(name);				if (ww != null) {			template = new WikiTemplate(ww.getContents(ctxt), mAccountId, mKey);			mTemplateMap.put(name, template);			return template;		}				boolean checkParents = name.startsWith("_");		try {			int fid = 0;			try {				fid = Integer.parseInt(wiki.getKey());			} catch (Exception e) {			}			wiki = Wiki.findWikiByPath(ctxt, mAccountId, fid, name, checkParents);			WikiTemplateStore store = getInstance(wiki.getWikiAccount(), wiki.getKey());			return store.getTemplate(ctxt, name);		} catch (ServiceException se) {			return new WikiTemplate("<!-- missing template "+name+" -->");		}	}