ColorSpec.Builder colorSpec = convertColor(color.getColour());
colorSpec.setId(++i);
builder.addColorSpecList(colorSpec);
}
ScreenWatcherResult result = executeScreenWatcher(builder, timeout);
ImmutableList.Builder<ColorResult> matches = ImmutableList.builder();
for (ColorMatch match : result.getColorMatchListList()) {
matches.add(new ColorResult(match.getId(), match.getCount()));
}
return new ScreenCaptureReply(result.getMd5(), matches.build());
}