public ERXWOSwitch(String name, NSDictionary<String, WOAssociation> associations, WOElement template) {
super(name, associations, template);
NSMutableDictionary<Object, WOElement> dict = new NSMutableDictionary<Object, WOElement>();
_case = associations.objectForKey("case");
for(Enumeration e = ((WODynamicGroup)template).childrenElements().objectEnumerator(); e.hasMoreElements(); ) {
WOElement child = (WOElement)e.nextElement();
if(child instanceof ERXWOCase) {
Object value = ((ERXWOCase)child).caseValue();
dict.setObjectForKey(child, value);
} else if(!(child instanceof WOHTMLBareString)) {
throw new IllegalStateException("Direct children must be ERXWOCase");