return (String[]) transformedPatterns.toArray(new String[transformedPatterns.size()]);
return transformedPatterns.toArray(new String[transformedPatterns.size()]);
    public String[] getTransformedPatterns(Gateway gateway) {        List dialPatterns = getDialPatterns();        Set transformedPatterns = new LinkedHashSet();        for (Iterator i = dialPatterns.iterator(); i.hasNext();) {            DialPattern dp = (DialPattern) i.next();            DialPattern tdp = m_callPattern.transform(dp);            String pattern = gateway.getCallPattern(tdp.calculatePattern());            transformedPatterns.add(pattern);        }        return (String[]) transformedPatterns.toArray(new String[transformedPatterns.size()]);    }