Dealers do not approval from the manufacturer to replace a Hemi under warranty. When that engine is returned for warranty, all documents need to match(block info and so on). The dealer needs to tear down the engine to failure and document(photos) of the failure and attach to the claim. The big thing is the oil control valve for VVT, remove that and check for metal. If there is metal, gets new engine. No metal rebuild/repair.
IF they do an analysis of the engine and find replacement wasn't needed the dealer will be charged back. There are engines that need prior approval for replacement, but the 5.7 isn't one of them.