}
((BooleanAttribute) attribute).setValue(value);
}
public void setCurrencyAttribute(String name, String value) {
Attribute attribute = getAttributes().get(name);
if (!(attribute instanceof CurrencyAttribute)) {
throw new IllegalStateException("Cannot set currency value on attribute with different type, " +
attribute.getClass().getName() + " setting value " + value);
}
((CurrencyAttribute) attribute).setValue(value);
}