// Path: src/main/java/de/tuebingen/uni/sfs/germanet/api/GermaNet.java
// public static final int GNROOT_ID = 51001;
// 
// Path: src/main/java/de/tuebingen/uni/sfs/germanet/api/GermaNet.java
// public static final int NUMBER_OF_GERMANET_FILES = 55;


import static de.tuebingen.uni.sfs.germanet.api.GermaNet.GNROOT_ID;
import static de.tuebingen.uni.sfs.germanet.api.GermaNet.NUMBER_OF_GERMANET_FILES;
import java.io.*;
import java.util.List;
import java.util.Map;
import java.util.Set;
import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap;
import it.unimi.dsi.fastutil.objects.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.xml.stream.XMLStreamException;
        Object2ObjectMap<String, ObjectSet<String>> lowerToUpperMap = new Object2ObjectOpenHashMap<>();

        ObjectIterator<Synset> synsetIterator;
        ObjectIterator<LexUnit> lexUnitIterator;
        List<Synset> synsetsFromInputStream;
        Synset synset;
        LexUnit lexUnit;
        Set<Synset> synsetSet;
        Set<LexUnit> lexUnitSet;
        WordCategory cat;
        Map<String, Set<LexUnit>> mapAllOrthForms;
        String orthForm;

        // load all synset input streams first with a SynsetLoader
        for (int i = 0; i < inputStreams.size(); i++) {
            InputStream stream = inputStreams.get(i);
            String name = xmlNames.get(i);

            LOGGER.info("Loading {}...", name);
            synsetsFromInputStream = SynsetLoader.loadSynsets(stream);
            synsets.addAll(synsetsFromInputStream);
            synsetIterator = ObjectIterators.asObjectIterator(synsetsFromInputStream.iterator());

            while (synsetIterator.hasNext()) {
                synset = synsetIterator.next();
                cat = synset.getWordCategory();
                synsetIdMap.put(synset.getId(), synset);

                // Don't add Root or its LexUnit to any of the
                // WordCategory or orthForm maps
// Path: src/main/java/de/tuebingen/uni/sfs/germanet/api/GermaNet.java
// public static final int GNROOT_ID = 51001;
// 
// Path: src/main/java/de/tuebingen/uni/sfs/germanet/api/GermaNet.java
// public static final int NUMBER_OF_GERMANET_FILES = 55;


// Path: src/main/java/de/tuebingen/uni/sfs/germanet/api/StaxLoader.java
import static de.tuebingen.uni.sfs.germanet.api.GermaNet.GNROOT_ID;
import static de.tuebingen.uni.sfs.germanet.api.GermaNet.NUMBER_OF_GERMANET_FILES;
import java.io.*;
import java.util.List;
import java.util.Map;
import java.util.Set;
import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap;
import it.unimi.dsi.fastutil.objects.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.xml.stream.XMLStreamException;

        Object2ObjectMap<String, ObjectSet<String>> lowerToUpperMap = new Object2ObjectOpenHashMap<>();

        ObjectIterator<Synset> synsetIterator;
        ObjectIterator<LexUnit> lexUnitIterator;
        List<Synset> synsetsFromInputStream;
        Synset synset;
        LexUnit lexUnit;
        Set<Synset> synsetSet;
        Set<LexUnit> lexUnitSet;
        WordCategory cat;
        Map<String, Set<LexUnit>> mapAllOrthForms;
        String orthForm;

        // load all synset input streams first with a SynsetLoader
        for (int i = 0; i < inputStreams.size(); i++) {
            InputStream stream = inputStreams.get(i);
            String name = xmlNames.get(i);

            LOGGER.info("Loading {}...", name);
            synsetsFromInputStream = SynsetLoader.loadSynsets(stream);
            synsets.addAll(synsetsFromInputStream);
            synsetIterator = ObjectIterators.asObjectIterator(synsetsFromInputStream.iterator());

            while (synsetIterator.hasNext()) {
                synset = synsetIterator.next();
                cat = synset.getWordCategory();
                synsetIdMap.put(synset.getId(), synset);

                // Don't add Root or its LexUnit to any of the
                // WordCategory or orthForm maps
                if (synset.getId() == GNROOT_ID) {