Foam Manufacturing?

Does anyone know of a process called ‘foam in place’? I can only seem to find it as a form of packaging.
Is it similar to Compression molding? Am I mistaken?

I want a denser foam, that still has give, molded around a metal insert. Manufacturing suggestions?
Thanks!