private void locateFile(final int precision) {
new Thread(new Runnable() {
@Override
public void run() {
DriveManagerSingleItemMatcher matcher =
new DriveManagerSingleItemMatcher(dco, precision);
matcher.start();
try {
matcher.join();
} catch (InterruptedException e) {
logger.error(e, e);
}
FileInfo info = matcher.getResult();
if (info != null) {
dco.setValue(dco.getFileField().getIndex(), info.getFilename());
try {
dco.saveUpdate(true, false);
} catch (ValidationException ve) {}