throws Exception {
try {
VcTask task = searchFile(ds, filePath, null);
// XXX This task frequently raises a WARN in VcTask for dropped VC taskInfo.state.
task.waitForCompletion();
SearchResults results = (SearchResults)task.getTaskResult();
FileInfo[] files = results.getFile();
if (files != null && files.length > 0) {
AuAssert.check(files.length == 1);
// Only return the file name. It's directory is reported elsewhere.
return files[0].getPath();
}