QueryResult result = manager.createQuery(queryString, Query.XPATH).execute();
NodeIterator it = result.getNodes();
if (it.hasNext()) {
return new JCRMailbox(it.nextNode(), getLogger());
}
throw new MailboxNotFoundException(path);
} catch (PathNotFoundException e) {
throw new MailboxNotFoundException(path);
} catch (RepositoryException e) {
throw new MailboxException("Unable to find mailbox " + path, e);
}
}