overrideReSource( ((KnowledgePackageImp) kpkg).pkg, resource );
addPackage( ((KnowledgePackageImp) kpkg).pkg );
}
} else if ( object instanceof KnowledgePackageImp ) {
// KnowledgeBuilder API
KnowledgePackageImp kpkg = (KnowledgePackageImp) object;
overrideReSource( kpkg.pkg, resource );
addPackage( kpkg.pkg );
} else if ( object instanceof Package ) {
// Old Drools 4 API
Package pkg = (Package) object;