Mailbox mbox = Mailbox.getMailboxById(mboxId);
Mailbox mbox = null; try { mbox = Mailbox.getMailboxById(mboxId); } catch (AccountServiceException e) { if (AccountServiceException.NO_SUCH_ACCOUNT.equals(e.getCode())) return null; else throw e; }
    private static List<WikiDigest> getWikiDigests(int mboxId)    throws SQLException, IOException, ServiceException {        Mailbox mbox = Mailbox.getMailboxById(mboxId);        OperationContext octxt = new OperationContext(mbox);        List<MailItem> wikis = mbox.getItemList(octxt, MailItem.TYPE_WIKI);        int len = wikis != null ? wikis.size() : 0;        List<WikiDigest> list = new ArrayList<WikiDigest>(len);        if (len > 0) {            for (MailItem item : wikis) {                int id = item.getId();                int rev = item.getSavedSequence();                short vol = item.getVolumeId();                MailboxBlob blob = sStore.getMailboxBlob(mbox, id, rev, vol);                InputStream is = null;                try {                    is = sStore.getContent(blob);                    byte[] data = ByteUtil.getContent(is, (int) item.getSize());                    String digest = ByteUtil.getDigest(data);                    String currentDigest = item.getDigest();                    if (!digest.equals(currentDigest)) {                        System.out.println("Found id " + id + ", current digest = \"" + currentDigest + "\"");                        WikiDigest wd = new WikiDigest(mboxId, id, digest);                        list.add(wd);                    } else {                        System.out.println("Found id " + id + " but skipping because digest is correct.");                    }                } finally {                    if (is != null)                        is.close();                }            }        }        return list;    }