- path = path.substring(0, path.length() - ".xml".length());
- Node target = file.getSession().getNode(path);
+ // Work around bug in ODK Collect not supporting paths
+ // path = path.substring(0, path.length() - ".xml".length());
+ // Node target = file.getSession().getNode(path);
+ String uuid = path.substring(1, path.length() - ".xml".length());
+ Node target = file.getSession().getNodeByIdentifier(uuid);
+ // FIXME hard code terms path in order to test ODK Collect bug