private void encodeHeadPanel(SystemInformation i, HeadPanel p) {
private void encodeHeadPanel(SystemInformationModel i, HeadPanel p) {
    private void encodeHeadPanel(SystemInformation i, HeadPanel p) {        if (i != null) {            if (p != null) {                encodeLabel((Label) p.getChildItem(HeadPanel.NAME_LABEL), (String) i.getChildItem(SystemInformation.NAME));                encodeLabel((Label) p.getChildItem(HeadPanel.VERSION_LABEL), (String) i.getChildItem(SystemInformation.VERSION));                encodeLabel((Label) p.getChildItem(HeadPanel.DATE_LABEL), (String) i.getChildItem(SystemInformation.DATE));                encodeLabel((Label) p.getChildItem(HeadPanel.SLOGAN_LABEL), (String) i.getChildItem(SystemInformation.SLOGAN));            } else {                throw new Exception("Could not encode into head panel. The head panel is null.");            }            } else {            throw new Exception("Could not encode into head panel. The system information is null.");        }    }