code: public void setAttribute(ObjectName name, String attrName, String value) throws Exception {
  		MBeanAttributeInfo info = getAttrInfo(name, attrName);
  		if (info == null) {
  			throw new IllegalArgumentException("Cannot find attribute named '" + attrName + "'");
  		} else {
  			setAttribute(name, attrName, ClientUtils.stringToParam(value, info.getType()));
  		}
  	}
docs: Set the JMX attribute to a particular value string.