private List<Component> getComponentsByProperties(final Properties nameProps, int retryCount, boolean isContainer) {
String message = "More than one component matched for: " + nameProps;
final ComponentNotFoundException err = new ComponentNotFoundException(message, null, null);
final Object[] found = new Object[1];
new Retry(err, ComponentFinder.RETRY_INTERVAL_MS, retryCount, new Retry.Attempt() {
public void perform() {
List<Component> matchedComponents = findMatchedComponents(nameProps);
if (matchedComponents.size() != 1) {
if (matchedComponents.size() == 0)
err.setMessage("No components matched for: " + nameProps);