List<ComponentAdapter> found = getComponentAdaptersOfType(componentType);
if (found.size() == 1) {
return found.get(0);
}
if (found.isEmpty()) {
<BUG>if (parent != null) {
return parent.getComponentAdapterOfType(componentType);

}
return null;</BUG>
}

List<ComponentAdapter> found = getComponentAdaptersOfType(componentType);
if (found.size() == 1) {
return found.get(0);
}
if (found.isEmpty()) {
return parent == null ? null : parent.getComponentAdapterOfType(componentType);
}
