if (sourceText != null) {
Iterator iter = cases.iterator();
while (iter.hasNext()) {
SwitchCase swCase = (SwitchCase) iter.next();
if (swCase != null) {
if (swCase.matches(sourceText)) {
if (shouldTrace) {
trace.trace("Executing case for : " + swCase.getRegex());
}
return swCase.mediate(synCtx);
}