final SmbizEntityType type = (SmbizEntityType) intfKey.getEntityType();
switch(type) {
case INTERFACE_SWITCH:
return new AccountSwitchInterfacePanel();
case INTERFACE_SINGLE:
return new AccountMultiOptionInterfacePanel(true);
case INTERFACE_MULTI:
return new AccountMultiOptionInterfacePanel(false);
}
throw new IllegalArgumentException("Unhandled account interface type");
}
}, new InterfaceStack.IFieldPanelDataLoader() {