code: public void setLongAttribute(String name, Long value) {
  		Attribute attribute = getAttributes().get(name);
  		if (!(attribute instanceof LongAttribute)) {
  			throw new IllegalStateException("Cannot set boolean value on attribute with different type, " +
  					attribute.getClass().getName() + " setting value " + value);
  		}
  		((LongAttribute) attribute).setValue(value);
  	}
docs: Set attribute value of given type.
  
  @param name attribute name
  @param value attribute value