They replace the boot floor area with a new panel, then inject the area with a structural foam/ resin that is light but sets like concreate.
It's a fairly big job the bill for myne was £3600, thank god I was not paying!.
That was a couple of years ago, I have a remapped e60 530d m sport now and would not go back to an e46 M3