how to include shadow when compositing in composure? like shadow catcher

I’m trying to compose a simple cube as a foreground over a media plate in the composure but i end up with the cube without the shadow. how can i include the shadow without the floor?

Have you found a solution for this?