private void handleConnection(Socket socket) throws IOException {
final RemoteControlWriter writer = new RemoteControlWriter(
socket.getOutputStream());
final RemoteControlReader reader = new RemoteControlReader(
socket.getInputStream());
reader.setRemoteCommandVisitor(new IRemoteCommandVisitor() {
public void visitDumpCommand(boolean dump, boolean reset)
throws IOException {
dumpRequested = dump;
resetRequested = reset;
if (dump) {