this is a bit of a holy grail from a mapped protocol description (method calls to events to response method calls) generate full code that will implement the protocol.