throw new Exception("Could not encode knowledge model. The system information display is null.");
throw new Exception("Could not encode model. The system information display is null.");
    public void encode(Item dm, Item m) throws Exception {        SystemInformationDisplay ui = (SystemInformationDisplay) m;        if (ui != null) {                        SystemInformationPanel p = (SystemInformationPanel) ui.getChild(SystemInformationDisplay.CONTENTS_PANEL);            if (p != null) {                if (dm != null) {                    encodeSystemVersionPanel((SystemInformationDisplay) dm.getChild(KnowledgeModel.SYSTEM_INFORMATION), (SystemVersionPanel) p.getChild(SystemInformationPanel.HEAD_PANEL));                    encodeTabbedPane((SystemInformationDisplay) dm.getChild(KnowledgeModel.SYSTEM_INFORMATION), (TabbedPane) p.getChild(SystemInformationPanel.TABBED_PANE));                } else {                    throw new Exception("Could not encode knowledge model. The knowledge model is null.");                }                } else {                throw new Exception("Could not encode knowledge model. The system information contents panel is null.");            }            } else {            throw new Exception("Could not encode knowledge model. The system information display is null.");        }    }