private static void initializeBuiltIns()

in src/main/java/org/apache/maven/shared/model/fileset/mappers/MapperUtil.java [42:59]


    private static void initializeBuiltIns() {
        if (implementations == null) {
            Properties props = new Properties();

            ClassLoader cloader = Thread.currentThread().getContextClassLoader();

            try (InputStream stream = cloader.getResourceAsStream(MAPPER_PROPERTIES)) {
                if (stream == null) {
                    throw new IllegalStateException("Cannot find classpath resource: " + MAPPER_PROPERTIES);
                }

                props.load(stream);
                implementations = props;
            } catch (IOException e) {
                throw new IllegalStateException("Cannot find classpath resource: " + MAPPER_PROPERTIES);
            }
        }
    }