public void setManyToOneAttribute(String name, AssociationValue value) {
		Attribute attribute = getAttributes().get(name);
		if (!(attribute instanceof ManyToOneAttribute)) {
			throw new IllegalStateException("Cannot set manyToOne value on attribute with different type, " +
					attribute.getClass().getName() + " setting value " + value);
		}
		((ManyToOneAttribute) attribute).setValue(value);
	}
public void setManyToOneAttribute ( String name , AssociationValue value ) { Attribute attribute = getAttributes ( ) . get ( name ) ; if ( ! ( attribute instanceof ManyToOneAttribute ) ) { throw new IllegalStateException ( "Cannot set manyToOne value on attribute with different type, " + attribute . getClass ( ) . getName ( ) + " setting value " + value ) ; } ( ( ManyToOneAttribute ) attribute ) . setValue ( value ) ; }
Set attribute value of given type.

@param name attribute name
@param value attribute value