if (UtilValidate.isEmpty(this.delegatorName)) this.delegatorName = "test";
this.dispatcherName = mainElement.getAttribute("dispatcher-name");
if (UtilValidate.isEmpty(this.dispatcherName)) this.dispatcherName = "test-dispatcher";
this.delegator = GenericDelegator.getGenericDelegator(this.delegatorName);
this.dispatcher = GenericDispatcher.getLocalDispatcher(this.dispatcherName, delegator);
<BUG>List testCaseElementList = UtilXml.childElementList(mainElement, "test-case");

Iterator testCaseElementIter = testCaseElementList.iterator();
while (testCaseElementIter.hasNext()) {
Element testCaseElement = (Element) testCaseElementIter.next();</BUG>
String caseName = testCaseElement.getAttribute("case-name");

if (UtilValidate.isEmpty(this.delegatorName)) this.delegatorName = "test";
this.dispatcherName = mainElement.getAttribute("dispatcher-name");
if (UtilValidate.isEmpty(this.dispatcherName)) this.dispatcherName = "test-dispatcher";
this.delegator = GenericDelegator.getGenericDelegator(this.delegatorName);
this.dispatcher = GenericDispatcher.getLocalDispatcher(this.dispatcherName, delegator);
for (Element testCaseElement : UtilXml.childElementList(mainElement, "test-case")) {
String caseName = testCaseElement.getAttribute("case-name");
