Context freshContext = new Context(context, sourceSet);
List<Agent> result = new ArrayList<Agent>();
args[1].checkAgentSetClass(sourceSet, context);
for (AgentSet.Iterator iter = sourceSet.iterator(); iter.hasNext();) {
Agent tester = iter.next();
Object value = freshContext.evaluateReporter(tester, args[1]);
if (!(value instanceof Double)) {
continue;
}
double dvalue = ((Double) value).doubleValue();
if (dvalue <= winningValue) {