public void startHandling() {
thread = new I2PThread(this, "SAMHandler");
thread.start();
}
protected abstract void handle();
<BUG>protected void writeBytes(byte[] data)  throws IOException {
synchronized (socketWLock) {</BUG>
if (socketOS == null) {
socketOS = socket.getOutputStream();
}

public void startHandling() {
thread = new I2PThread(this, "SAMHandler");
thread.start();
}
protected abstract void handle();
protected void writeBytes(byte[] data) throws IOException {
synchronized (socketWLock) {
if (socketOS == null) {
socketOS = socket.getOutputStream();
}
