}
private void updateAllResources(InternalKieModule currentKM, InternalKieModule newKM, KieBaseModel kieBaseModel, PackageBuilder pkgbuilder, CompositeKnowledgeBuilder ckbuilder) {
for (String resourceName : currentKM.getFileNames()) {
if ( !resourceName.endsWith( ".properties" ) && filterFileInKBase(currentKM, kieBaseModel, resourceName) ) {
Resource resource = currentKM.getResource(resourceName);
pkgbuilder.removeObjectsGeneratedFromResource( resource );
}
}
for (String resourceName : newKM.getFileNames()) {
if ( !resourceName.endsWith( ".properties" ) && filterFileInKBase(newKM, kieBaseModel, resourceName) ) {