Takes the entity metadata introspected via Doctrine and completes its
contents to simplify data processing for the rest of the application.

@param ClassMetadata $entityMetadata The entity metadata introspected via Doctrine

@return array The entity properties metadata provided by Doctrine

@throws \RuntimeException