DatabaseObjectContainer container = containers.get(type);
if (container == null) {
container = new DatabaseObjectContainer(type);
containers.put(type, container);
}
container.addObject(obj);
}
}
}
return containers.values().toArray(new DatabaseObjectContainer[containers.size()]);
}