There is no easy way to retrieve ClassMetadata. Do you really want to have an abstract factroy or asking people to write factories for getting ClassMetadata too ? Gosh éè