if (name == null) {
// FIXME - i18n
throw new NullPointerException("No attribute name specified");
}
SupportedComponent supported = (SupportedComponent)
components.get(componentType);
if (supported == null) {
// FIXME - i18n
throw new IllegalArgumentException("Component type '" +
componentType +
"' is not supported");
}
AttributeDescriptor descriptor =
supported.getAttributeDescriptor(name);
if (descriptor == null) {
// FIXME - i18n
throw new IllegalArgumentException("Attribute name '" +
name +
"' is not supported");