}
return result;
}
private Attribute getNamedAttribute(String name) {
Attribute result = null;
if (name.equals(ResourceMBean.MBEAN_DESCRITION)) {
result = new Attribute(ResourceMBean.MBEAN_DESCRITION, this.description);
} else {
AttributeEntry entry = atts.get(name);
if (entry != null) {
try {
result = new Attribute(name, entry.invoke(null));
} catch (Exception e) {
log.warn("Exception while reading value of attribute " + name, e);
}
} else {
log.warn("Did not find queried attribute with name " + name);