public static <T> T loadModel(Class<T> clzz, File file) {
        try {
            return Jackson.load(clzz, file);
        } catch (IOException e) {
            System.err.println("Failed to read the configuration file " + file.getAbsolutePath());
            throw new RuntimeException(e);
        }
    }
Return an InputStream of the specified resource, failing if it can't be found.

@param location Location of resource
aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/utils/ModelLoaderUtils.java