code: public void populate(Entity entity) {
      stream(entity.getEntityType().getAllAttributes())
          .filter(Attribute::hasDefaultValue)
          .forEach(attr -> populateDefaultValues(entity, attr));
    }
docs: Populates an entity with default values
  
  @param entity populated entity