while (it.hasNext()) { DataType dt = (DataType)it.next();
for (Iterator it = m_root.getObjectTypes().iterator(); it.hasNext(); ) { com.arsdigita.persistence.proto.metadata.ObjectType ot = (com.arsdigita.persistence.proto.metadata.ObjectType) it.next(); if (ot.getModel().equals(m_model)) { result.add(ot); } }
    public Collection getObjectTypes() {        Iterator it = m_types.values().iterator();        Collection retval = new ArrayList();        while (it.hasNext()) {            DataType dt = (DataType)it.next();            if (dt instanceof ObjectType) {                retval.add(dt);            }        }        return retval;    }