getHierarchy().add(this, idrep);
// insert into db - note: DBIDs should have been prepared before this!
Relation<?>[] targets = alignColumns(objpackages);
for(int j = 0; j < objpackages.dataLength(); j++) {
// insert object
final DBID newid = ids.get(j);
for(int i = 0; i < targets.length; i++) {
// DBIDs were handled above.
if(i == idrepnr) {