XML JobDef import: restored ascending compatibility.
Client API now tries the java context when root context fails

Fixes #10