Account a = Provisioning.getInstance().get(AccountBy.NAME, "user1@example.zimbra.com");
Account a = Provisioning.getInstance().get(AccountBy.name, "user1@example.zimbra.com");
    public static void main(String args[]) throws ServiceException, AuthTokenException {        Account a = Provisioning.getInstance().get(AccountBy.NAME, "user1@example.zimbra.com");        AuthToken at = new AuthToken(a);        long start = System.currentTimeMillis();        String encoded = at.getEncoded();        for (int i = 0; i < 1000; i++) {            AuthToken foo = new AuthToken(encoded);        }        long finish = System.currentTimeMillis();        System.out.println(finish-start);                start = System.currentTimeMillis();        for (int i = 0; i < 1000; i++) {            AuthToken foo = getAuthToken(encoded);        }        finish = System.currentTimeMillis();        System.out.println(finish-start);    }