private static File validateFile(File file) {
        if ( ! file.isFile()) throw new IllegalArgumentException("Not a file: " + file);
        return file;
    }
Source specifying config from one local file

@author Vegard Havdal
@author jonmv
config/src/main/java/com/yahoo/config/subscription/FileSource.java