private <T> Optional<T> loadOptionalModel(Class<T> clzz, String location) {
        return ModelLoaderUtils.loadOptionalModel(clzz, getResourceLocation(location));
    }
Load an optional model from the project resources.

@return Model or empty optional if not present.
aws-java-sdk-codegen-maven-plugin/src/main/java/com/amazonaws/codegen/maven/plugin/GenerationMojo.java