List list = new ArrayList();
List<DialingRule> list = new ArrayList<DialingRule>();
    private DialingRule getGenerationRule(DialingRule rule) {        List list = new ArrayList();        rule.appendToGenerationRules(list);        return (DialingRule) list.get(0);    }