code: private void setFieldValue(Object entity, Object thriftColumnValue, Attribute attribute)
      {
          if (attribute != null)
          {
              try
              {
                  if (thriftColumnValue.getClass().isAssignableFrom(String.class))
                  {
                      PropertyAccessorHelper.set(entity, (Field) attribute.getJavaMember(), (String) thriftColumnValue);
                  }
                  else if (CassandraDataTranslator.isCassandraDataTypeClass(((AbstractAttribute) attribute)
                          .getBindableJavaType()))
                  {
                      Object decomposed = null;
                      try
                      {
                          Class<?> clazz = ((AbstractAttribute) attribute).getBindableJavaType();
                          decomposed = CassandraDataTranslator.decompose(clazz, thriftColumnValue, false);
                      }
                      catch (Exception e)
                      {
                          String tableName = entity.getClass().getSimpleName();
                          String fieldName = attribute.getName();
                          String msg = "Decomposing failed for `" + tableName + "`.`" + fieldName
                                  + "`, did you set the correct type in your entity class?";
                          log.error(msg, e);
                          throw new KunderaException(msg, e);
                      }
                      PropertyAccessorHelper.set(entity, (Field) attribute.getJavaMember(), decomposed);
                  }
                  else
                  {
                      PropertyAccessorHelper.set(entity, (Field) attribute.getJavaMember(), (byte[]) thriftColumnValue);
                  }
  
              }
              catch (PropertyAccessException pae)
              {
                  log.warn("Error while setting field value, Caused by: .", pae);
              }
          }
      }
docs: Sets the field value.
  
  @param entity
  the entity
  @param thriftColumnValue
  the thrift column value
  @param attribute
  the attribute