DialPattern patternShort = new DialPattern(areaCode, variableLenght); patterns.add(patternShort);
if (StringUtils.isNotBlank(m_pstnPrefix) && m_longDistancePrefixOptional) { String prefix = m_pstnPrefix + areaCode; patterns.add(new DialPattern(prefix, variableLenght)); } if (m_pstnPrefixOptional && m_longDistancePrefixOptional) { patterns.add(new DialPattern(areaCode, variableLenght)); }
    List calculateDialPatterns(String areaCode) {        int variableLenght = m_externalLen - areaCode.length();        ArrayList patterns = new ArrayList();        if (StringUtils.isNotBlank(m_pstnPrefix)) {            DialPattern patternFull = new DialPattern(m_pstnPrefix + m_longDistancePrefix                    + areaCode, variableLenght);            patterns.add(patternFull);        }        if (StringUtils.isNotBlank(m_longDistancePrefix)) {            DialPattern patternNormal = new DialPattern(m_longDistancePrefix + areaCode,                    variableLenght);            patterns.add(patternNormal);        }        DialPattern patternShort = new DialPattern(areaCode, variableLenght);        patterns.add(patternShort);        return patterns;    }