SystemInformationContentsPanel p = (SystemInformationContentsPanel) ui.getChildItem(SystemInformationUserInterface.CONTENTS_PANEL);
SystemInformationContentsPanel p = (SystemInformationContentsPanel) ui.getChild(SystemInformationUserInterface.CONTENTS_PANEL);
    public void encode(DomainModel dm, Model m) throws Exception {        SystemInformationUserInterface ui = (SystemInformationUserInterface) m;        if (ui != null) {                        SystemInformationContentsPanel p = (SystemInformationContentsPanel) ui.getChildItem(SystemInformationUserInterface.CONTENTS_PANEL);            if (p != null) {                if (dm != null) {                    encodeHeadPanel((SystemInformation) dm.getChildItem(DomainModel.SYSTEM_INFORMATION), (HeadPanel) p.getChildItem(SystemInformationContentsPanel.HEAD_PANEL));                    encodeTabbedPane((SystemInformation) dm.getChildItem(DomainModel.SYSTEM_INFORMATION), (TabbedPane) p.getChildItem(SystemInformationContentsPanel.TABBED_PANE));                } else {                    throw new Exception("Could not encode domain model. The domain model is null.");                }                } else {                throw new Exception("Could not encode domain model. The system information contents panel is null.");            }            } else {            throw new Exception("Could not encode domain model. The system information user interface is null.");        }    }