if (collectionType != null) {
final Class valueType = getValueType(expectedType);
final Collection componentAdapters = getMatchingComponentAdapters(container, adapter, componentKeyType, valueType).values();
if (componentAdapters.isEmpty()) {
if (!emptyCollection) {
throw new PicoIntrospectionException(expectedType.getName()
+ " not resolvable, no components of type "
+ getValueType(expectedType).getName()
+ " available");
}
} else {
for (final Iterator iter = componentAdapters.iterator(); iter.hasNext();) {
final ComponentAdapter componentAdapter = (ComponentAdapter) iter.next();
componentAdapter.verify(container);
}
}
} else {
throw new PicoIntrospectionException(expectedType.getName() + " is not a collective type");
}
return;
}