BUG-994: use SchemaPath.getPathTowardRoot()