code: private Attribute<?> toAssociationDto(Object value, AssociationAttributeInfo associationAttributeInfo)
  			throws GeomajasException {
  		if (associationAttributeInfo.getType() == AssociationType.MANY_TO_ONE) {
  			return new ManyToOneAttribute(createAssociationValue(value, associationAttributeInfo));
  		} else if (associationAttributeInfo.getType() == AssociationType.ONE_TO_MANY) {
  			// Value should be an array of objects...
  			List<AssociationValue> associationValues = new ArrayList<AssociationValue>();
  			if (value != null && value instanceof Object[]) {
  				Object[] array = (Object[]) value;
  				for (Object bean : array) {
  					associationValues.add(createAssociationValue(bean, associationAttributeInfo));
  				}
  			}
  			return new OneToManyAttribute(associationValues);
  		}
  		return null;
  	}
docs: -------------------------------------------------------------------------