DistributionList dl = null; switch(guessType(key)) { case BY_ID: dl = mProv.get(DistributionListBy.id, key); break; case BY_EMAIL: default: dl = mProv.get(DistributionListBy.name, key); break; }
DistributionList dl = mProv.get(guessDistributionListBy(key), key);
    private DistributionList lookupDistributionList(String key) throws ServiceException {        DistributionList dl = null;        switch(guessType(key)) {        case BY_ID:            dl = mProv.get(DistributionListBy.id, key);            break;        case BY_EMAIL:        default:                        dl = mProv.get(DistributionListBy.name, key);            break;        }                if (dl == null)            throw AccountServiceException.NO_SUCH_DISTRIBUTION_LIST(key);        else            return dl;    }