if(rom.getRomType().equals(de.getRomType()))
    public static void readXML(Rom rom)    {        //don't do this twice        if (entries.size() > 0)            return;        //This is the slow way, the fast way (SAX) looks like too much work.        Document dom;        if ((dom = parseFile(ClassLoader            .getSystemResourceAsStream("net/starmen/pkhack/ips/ipslisting.xml"))) == null)        {            System.out.println("Error reading ipslisting.xml!");        }        else        {            //put the xml elements as java objects into entries ArrayList            NodeList nl = dom.getElementsByTagName("ips");            for (int i = 0; i < nl.getLength(); i++)            {                try                {                    DatabaseEntry de = new DatabaseEntry((Element) nl.item(i));                    de.checkApplied();                    entries.add(de);                }                catch (NumberFormatException e)                {                    e.printStackTrace();                }                catch (IOException e)                {                    e.printStackTrace();                }            }        }    }