ep.addInterval(pi);
if (pi != null) { ep.addInterval(pi); }
    protected static EventProbability parseEventLikelihoodInterval(Element element, Hashtable map) {                EventProbability ep = null;                ep = new EventProbability( );        Element e;        for (Node child = element.getFirstChild(); child != null; child = child.getNextSibling()) {            if (child.getNodeType() == Node.ELEMENT_NODE && child.getNodeName().equalsIgnoreCase("ClockInterval") ) {                e = (Element)child;                                EventProbabilityInterval pi = parseInterval(e, map);                ep.addInterval(pi);            } //else, likely a text element - ignore        }                return ep;                    }