throw new Exception("Could not remove head panel. The head panel is null.");
throw new Exception("Could not remove system version panel. The system version panel is null.");
    public void removeSystemVersionPanel(SystemVersionPanel hp) throws Exception {        javax.swing.JPanel p = (javax.swing.JPanel) getJavaObject();        if (p != null) {            if (hp != null) {                p.remove((javax.swing.JPanel) hp.getJavaObject());            } else {                    throw new Exception("Could not remove head panel. The head panel is null.");            }        } else {            throw new Exception("Could not remove head panel. The java panel is null.");        }    }