String key = element.getAttribute(KEY);
String classKey = element.getAttribute(CLASS_NAME_KEY);
if (notSet(key)) {
if (!notSet(classKey)) {
container.getPico().registerComponentInstance(new ClassNameKey(key), instance);
} else {
container.getPico().registerComponentInstance(instance);
}
} else {
container.getPico().registerComponentInstance(key, instance);