A new example shows how you can build a CAPI application controlled by Automation, and an Automation server to control it.
See the files in examples/com/automation/capi-application/ .
examples/com/automation/capi-application/