@Override
    public File waitFor(FileReference reference, long l, TimeUnit timeUnit) {
        synchronized (this) {
            File file = fileReferenceToFile.get(reference);
            if (file == null) {
                return new File(reference.value()); // Downloaded file reference: Will (hopefully) be resolved client side
            }
            return file;
        }
    }
FileAcquirer and FileRegistry working on a local directory.

@author Tony Vaagenes
@author ollivir
standalone-container/src/main/java/com/yahoo/container/standalone/LocalFileDb.java