code: private void populateNodeProperties(Object entity, EntityMetadata m, Node node)
      {
          MetamodelImpl metaModel = (MetamodelImpl) kunderaMetadata.getApplicationMetadata().getMetamodel(
                  m.getPersistenceUnit());
          EntityType entityType = metaModel.entity(m.getEntityClazz());
  
          // Iterate over entity attributes
          Set<Attribute> attributes = entityType.getSingularAttributes();
          for (Attribute attribute : attributes)
          {
              Field field = (Field) attribute.getJavaMember();
  
              // Set Node level properties
              if (!attribute.isCollection() && !attribute.isAssociation() && !((SingularAttribute) attribute).isId())
              {
                  String columnName = ((AbstractAttribute) attribute).getJPAColumnName();
                  Object value = PropertyAccessorHelper.getObject(entity, field);
                  if (value != null)
                  {
                      node.setProperty(columnName, toNeo4JProperty(value));
                  }
              }
          }
      }
docs: Populates Node properties from Entity object
  
  @param entity
  @param m
  @param node