code: private void iterateAndPopulateEntity(Object entity, JsonObject obj, Iterator<Attribute> iterator)
      {
          while (iterator.hasNext())
          {
              Attribute attribute = iterator.next();
              Field field = (Field) attribute.getJavaMember();
              String colName = ((AbstractAttribute) attribute).getJPAColumnName();
  
              if (!colName.equalsIgnoreCase(CouchbaseConstants.KUNDERA_ENTITY) && obj.get(colName) != null)
              {
                  Object value = ConvertUtils.convert(obj.get(colName), field.getType());
                  PropertyAccessorHelper.set(entity, field, value);
              }
  
          }
      }
docs: Iterate and populate entity.
  
  @param entity
  the entity
  @param obj
  the obj
  @param iterator
  the iterator