code: private void marshalEmbeddedFields() {
      for (EmbeddedMetadata embeddedMetadata : entityMetadata.getEmbeddedMetadataCollection()) {
        if (embeddedMetadata.getStorageStrategy() == StorageStrategy.EXPLODED) {
          marshalWithExplodedStrategy(embeddedMetadata, entity);
        } else {
          ValueBuilder<?, ?, ?> embeddedEntityBuilder = marshalWithImplodedStrategy(embeddedMetadata,
              entity);
          if (embeddedEntityBuilder != null) {
            entityBuilder.set(embeddedMetadata.getMappedName(), embeddedEntityBuilder.build());
          }
        }
      }
  
    }
docs: Marshals the embedded fields.