public static <T> T loadConfigurationModel(Class<T> clzz, String configurationFileLocation) {
        System.out.println("Loading config file " + configurationFileLocation);
        InputStream fileContents = null;
        try {
            fileContents = getRequiredResourceAsStream(configurationFileLocation);
            return Jackson.load(clzz, fileContents);
        } catch (IOException e) {
            System.err.println("Failed to read the configuration file " + configurationFileLocation);
            throw new RuntimeException(e);
        } finally {
            if (fileContents != null) {
                Utils.closeQuietly(fileContents);
            }
        }
    }
Deserialize the contents of a given configuration file.

@param clzz                      Class to deserialize into
@param configurationFileLocation Location of config file to load
@return Marshalled configuration class
aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/utils/ModelLoaderUtils.java