I've just published a blog post at [1] about writing an extension step in Java for Calabash to use BaseX. Using BaseX is just an excuse, and the post shows more how to write an extension and how to glue the various parts together, but I think it is enough to give the big picture.
..that's great news! I'll have a closer look at both your blog entry and the MarkLogic extension today.
Christian