LPS-51208 replace enhanced loop with indexed loop to prevent possible concurrency issues during bundles registration.
LPS-51208 Source formatting