List<Reference> list = new ArrayList<Reference>();
// System.out.println(">>table="+table);
// System.out.println(">>table="+table.getName());
Reference[] reference = table.getChildren();
for (int i = 0; i < reference.length; i++) {
Table child = reference[i].getForeignTable();
// if (hasTag(child, tag))
if (filterMany2Many) {
if (child.isManyToMany()) {
boolean present = false;
for (Reference ref : list) {
if (ref==reference[i]) present = true;
break;
}