}
private Component findComponent(ComponentMatcher[] matchers, String type, String name, Class[] swingClasses) throws ComponentAmbiguityException {
Component[] foundComponents = getComponents(matchers, swingClasses);
if (foundComponents.length > 1) {
throw new ComponentAmbiguityException(Messages.computeAmbiguityMessage(foundComponents, type, name));
}
return (foundComponents.length == 0) ? null : foundComponents[0];
}