public SMGPSMProxy(Args args) { conn = new SMGPConnection(args); conn.addEventListener(new SMGPEventAdapter(this)); conn.waitAvailable(); if (!conn.available()) throw new IllegalStateException(conn.getError()); else return; }