}
}
public AttributeList setAttributes(ObjectName name, AttributeList attributes) throws InstanceNotFoundException, ReflectionException {
AbstractName abstractName = toAbstractName(name);
AttributeList set = new AttributeList(attributes.size());
for (Iterator iterator = attributes.iterator(); iterator.hasNext();) {
Attribute attribute = (Attribute) iterator.next();
String attributeName = attribute.getName();
Object attributeValue = attribute.getValue();
try {
kernel.setAttribute(abstractName, attributeName, attributeValue);
set.add(attribute);
} catch (NoSuchAttributeException e) {
// ignored - caller will see value was not set because this attribute will not be in the attribute list
} catch (GBeanNotFoundException e) {
throw new InstanceNotFoundException(name.getCanonicalName());
} catch (InternalKernelException e) {