if (project.hasFacet(CDIFacetImpl.class))
{
PackagingType oldType = event.getOldPackagingType();
FileResource<?> configFile = getConfigFile(project, oldType);
BeansDescriptor config = getConfig(project, configFile);
saveConfig(project, config);
configFile.delete();
}
}