Modern diesels use direct injection. A 240d uses indirect injection. Totally different cylinder head design. No pre-chamber with a DI engine.
It would be much easier and a lot cheaper to just swap an entire 220 CDI motor in. 45 mpg's and 170 hp from a 220 CDI motor, BTW.