Well, the donor car is an '05, and the gas wagon will probably be an '04 or '05. I have not seen any W211 wagons newer than '05. I am not saying they did not make a W211 wagon past '05, I just have not seen one.
It seems like all the rules are easy to comply with in this swap.
You can't put the 05 engine in an 06 body.
__________________ CENSORED due to not family friendly words