private MpcConnection getConnection() { MpcConnection ret = this.connection; if (ret == null) throw new NotConnectedException(); else return ret; }