215216217218219220221222223224225
} p.consumeMessage(pm); pm = p.produceMessage(); mc.writeMessage(pm); if (p.isComplete()) { subject = p.activate(); } } else { throw new IOException("Unexpected message: " + msg.getClass().getName()); }