Replaces an existing leaf with a new one.
AssetInterface $needle The current asset to replace:
AssetInterface $replacement The new asset:
InvalidArgumentException If the asset cannot be found
public function replaceLeaf(AssetInterface $needle, AssetInterface $replacement);