logger.debug("Saw direct transition: "+whenState+", "+endState);
if (logger.isDebugEnabled()) logger.debug("Saw direct transition: "+whenState+", "+endState);
    private void parseDirectEffect(Element element, EventDescription event) {        Element e;        for (Node child = element.getFirstChild(); child != null; child = child.getNextSibling()) {            if (child.getNodeType() == Node.ELEMENT_NODE && child.getNodeName().equalsIgnoreCase("Transition") ) {                e = (Element)child;                String whenState = e.getAttribute("WhenActualStateIs");                String endState = e.getAttribute("EndStateWillBe");                if (whenState == null || endState == null) {                    logger.error("Event XML Error - one direct effect asset state is NULL for event["+event.getName()+"]! unknown EndStateWillBe: "+endState+ ", WhenActualStateIs: "+whenState);                    return;                }                AssetState when_as;                if (whenState.equals("*")) { when_as = AssetState.ANY; }                 else {                    when_as = event.getAffectedStateDimension().findAssetState(whenState);                }                if (when_as == null) {                    logger.error("Event XML Error - direct effect asset state not found! unknown WhenActualStateIs: "+whenState+ " for asset type = " + event.getAffectedAssetType());                    return;                }                                AssetState end_as = event.getAffectedStateDimension().findAssetState(endState);                if (end_as == null) {                    logger.error("Event XML Error - direct effect asset state not found! unknown EndStateWillBe: "+endState+ " for asset type = " + event.getAffectedAssetType());                    return;                }                                                //Add transition to Event                event.addDirectEffectTransition(when_as, end_as);                logger.debug("Saw direct transition: "+whenState+", "+endState);            } //else, likely a text element - ignore        }                    }