String elemName = getEventName(first); includedTagFound = INCLUDED_TAG.equalsIgnoreCase(elemName); configTagFound = CONFIG_TAG.equalsIgnoreCase(elemName); String elemName = getEventName(last); if ((includedTagFound && INCLUDED_TAG.equalsIgnoreCase(elemName)) || (configTagFound && CONFIG_TAG.equalsIgnoreCase(elemName))) {