private static CycAccess getCyc() {
    if (cycAccess == null) {
      if (SHOULD_SET_CONNECTION_PARAMS_INTERACTIVELY && !areConnectionParamsSet) {
        cycAccess = CycAccess.getNewCycAccessInteractively();
        hostname = cycAccess.getHostName();
        port = cycAccess.getBasePort();
        areConnectionParamsSet = true;
      } else {
        try {
          cycAccess = new CycAccess(hostname, port);
        } catch (Exception ex) {
          fail(ex.getMessage());
        }
      }
    }
    return cycAccess;
  }