code: public void setFieldValue(String fieldName, Object value) {
  		DOField field = this.domainObjectType.getFieldByName(fieldName);
  		if (field == null)
  			throw new RuntimeException("field: " + fieldName + " not found in: " + this.domainObjectType.getName());
  		if (field.getComponentTypeName() != null)
  			throw new RuntimeException("field: " + fieldName + " is a list field, use list field accessors instead ");
  		Object val = value;
  		if (value instanceof DomainObject)
  			val = ((DomainObject)value).getRawObject();
  		field.setValue(this.getRawObject(), val);
  	}
docs: Set a field (attribute) value
  @param fieldName
  @param value