}
private GBeanAttribute getAttributeByName(String name) throws NoSuchAttributeException {
Integer index = (Integer) attributeIndex.get(name);
if (index == null) {
throw new NoSuchAttributeException("Unknown attribute " + name + " in gbean " + objectName);
}
GBeanAttribute attribute = attributes[index.intValue()];
return attribute;
}