final OMapComponent omapComponent = omapService.findComponentByName(name, topContainer);
if (omapComponent == null) {
return getContainer(name, retryCount, "Could not find component/container (InternalFrame) for: " + name);
}
String message = "More than one component matched for: " + name + " with properties: " + omapComponent;
final ComponentNotFoundException err = new ComponentNotFoundException(message, null, null);
final Object[] found = new Object[1];
try {
new Retry(err, ComponentFinder.RETRY_INTERVAL_MS, retryCount, new Retry.Attempt() {
public void perform() {
List<Component> matchedComponents = findComponent(omapComponent);
found[0] = matchedComponents;
if (matchedComponents.size() != 1) {
if (matchedComponents.size() == 0) {
err.setMessage("No components matched for: " + name + " with properties: " + omapComponent);
} else
err.setMessage("More than one component matched for: " + name + " with properties: " + omapComponent);
retry();
}
}
});
} catch (ComponentNotFoundException e) {