if (result.size() == 0) { SQLBlock sql = getRetrieveAll(); if (sql != null) { for (Iterator it = sql.getPaths().iterator(); it.hasNext(); ) { Object o = it.next(); if (!result.contains(o)) { result.add(o); } } } }
    public Collection getDeclaredFetchedPaths() {        final ArrayList result = new ArrayList();        for (Iterator it = getDeclaredMappings().iterator(); it.hasNext(); ) {            Mapping m = (Mapping) it.next();            m.dispatch(new Mapping.Switch() {                public void onValue(Value m) {                    if (!result.contains(m.getPath())) {                        result.add(m.getPath());                    }                }                public void onJoinTo(JoinTo m) {}                public void onJoinFrom(JoinFrom m) {}                public void onJoinThrough(JoinThrough m) {}                public void onStatic(Static m) {}                public void onQualias(Qualias q) {}            });        }        for (Iterator it = m_fetched.iterator(); it.hasNext(); ) {            Object o = it.next();            if (!result.contains(o)) {                result.add(o);            }        }        if (result.size() == 0) {            SQLBlock sql = getRetrieveAll();            if (sql != null) {                for (Iterator it = sql.getPaths().iterator(); it.hasNext(); ) {                    Object o = it.next();                    if (!result.contains(o)) {                        result.add(o);                    }                }            }        }        return result;    }