it is said the middle part will consist of heavy elements w/c will form the core of the planet. and this very hot and small revolving concentrated pile of whatever heavy element they are ,will provide the gravity to the developing planet that will hold whatever may come out of it (or come IN to it).

literally, everything in the universe is all made of star dust!