ARIES-457: Performance improvement by reusing optimizations in FrameworkUtils#getBundleImportedPackages