public static void main(String[] args) {
    try {
      CycAccess access = new CycAccess("localhost", 3600);
      SubLWorker worker = new DefaultSubLWorker("(+ 1 1)", access);
      worker.addListener(new SubLWorkerListener() {
        public void notifySubLWorkerStarted(SubLWorkerEvent event) {
          System.out.println("Received SubL Worker Event: \n" + event.toString(2) + "\n");
        }
        public void notifySubLWorkerDataAvailable(SubLWorkerEvent event) {
          System.out.println("Received SubL Worker Event: \n" + event.toString(2) + "\n");
        }
        public void notifySubLWorkerTerminated(SubLWorkerEvent event) {
          System.out.println("Received SubL Worker Event: \n" + event.toString(2) + "\n");
          System.exit(0);
        }
      });
      worker.start();
    } catch (Exception e) {
      e.printStackTrace();
    }
  }