public static void main(String[] args) {
    try {
      access = CycAccess.getNewCycAccessInteractively();
      helloWorldExample();
      exampleConnectingToCyc();
      exampleContantsManipulations();
      exampleNartManipulations();
      exampleAssertionManipulations();
      exampleSynchronousQueries();
      exampleAsynchronousQueries();
      exampleInferenceParameters();
      exampleGenericLispAPI();
    } catch (CycApiException ex) {
      Logger.getLogger(APIExamples.class.getName()).log(Level.SEVERE, null, ex);
    } finally {
      if (access != null) {
        access.close();
      }
    }
    System.exit(0);
  }