if (name == null)
throw new RuntimeOperationsException
(new IllegalArgumentException("Attribute name is null"),
"Attribute name is null");
ModelMBeanAttributeInfo attrInfo=info.getAttribute(name);
if (attrInfo == null)
throw new AttributeNotFoundException("Cannot find attribute " + name);
Descriptor attrDesc=attrInfo.getDescriptor();
if (attrDesc == null)
throw new AttributeNotFoundException("Cannot find attribute " + name + " descriptor");
Object oldValue=null;
if( getAttMap.get(name) != null )
oldValue=getAttribute( name );
// Extract the method from cache
Method m=(Method)setAttMap.get( name );
if( m==null ) {
// Look up the actual operation to be used
String setMethod = (String) attrDesc.getFieldValue("setMethod");
if (setMethod == null)
throw new AttributeNotFoundException("Cannot find attribute " + name + " set method name");
String argType=attrInfo.getType();
Class signature[] = new Class[] { getAttributeClass( argType ) };
Object object = null;
NoSuchMethodException exception = null;