#fixed code
                                public static void configure(String configurationFileName) {
        try (InputStream is = toInputStream(configurationFileName)) {
            configure(is);
        } catch (Exception e) {
            logger.warn("Could not configure OGM from {}", configurationFileName);
        }

    }
#vulnerable code 
                                public static void configure(String configurationFileName) {
        try (InputStream is = classPathResource(configurationFileName)) {
            configure(is);
        } catch (Exception e) {
            logger.warn("Could not configure OGM from {}", configurationFileName);
        }

    } 
                            #location 3 
                            #vulnerability type THREAD_SAFETY_VIOLATION