+ public DefaultContainer addComponent(String aName, Object aObject,
+ ObjectConfiguration aConfiguration) {
+ if (!aConfiguration.appliesTo(aObject)) {
+ throw new IllegalArgumentException("Configuration '" +
+ aConfiguration + "' does nto applu to '" + aObject + "'");
+ }
+
+ return addComponent(new ObjectAdapter(aName, aObject, aConfiguration));
+ }
+