Java code implementing the Conversation Transfer Protocol