Change EmbeddedDocumentField to GenericEmbeddedDocumentField