Could reuse lookupFileStrict() and handle the exception.