for (final EventIterator ei = es.eventIterator(); ei.hasNext();) {
final Event e = ei.nextEvent();
if (!done && e instanceof BreakpointEvent) {
final BreakpointEvent be = (BreakpointEvent) e;
final Location loc = be.location();
final ThreadReference tr = be.thread();
if (loc.equals(interceptIn)) {
LocalVariable result = (LocalVariable) loc.method().variablesByName("result").get(0);
LocalVariable buffer = (LocalVariable) loc.method().arguments().get(0);
ArrayReference buf = (ArrayReference) tr.frame(0).getValue(buffer);
new InputInterceptHandler(tr, buf, result).start();