boolean canInsert = true;
if (allpkgids.contains(pkg.getId())) {
canInsert = false;
}
if (canInsert) {
xpdlhandler.synchronizePackages(xpdlh);
boolean mainChanged = false;
Iterator it = xpdlhandler.getAllPackages().iterator();
while (it.hasNext()) {
Package p = (Package) it.next();