private static File checkDestinationDir(String destination) throws PropertyException {
        if (destination == null)
            throw new PropertyException("Missing property: config.dest.");

        File dir = new File(destination);
        if (!dir.isDirectory()) {
            throw new PropertyException("Could not find directory: " + dir.getPath());
        }
        return dir;
    }
Encapsulates data extracted from system properties.

@author gjoranv
configgen/src/main/java/com/yahoo/config/codegen/MakeConfigProperties.java