default:
    private Domain lookupDomain(String key) throws ServiceException {        Domain d = null;        switch(guessType(key)) {        case BY_ID:            d = mProvisioning.getDomainById(key);            break;        case BY_NAME:            d = mProvisioning.getDomainByName(key);            break;        }                if (d == null)            throw AccountServiceException.NO_SUCH_DOMAIN(key);        else            return d;    }