STS-3547: added another performance improvement by avoiding too many calls to retrieve the package fragment roots