static public CycList convertResponseToCycList(Object response, Object command) {  
    if (response.equals(CycObjectFactory.nil)) {
      return new CycList();
    } else {
      if (response instanceof CycList) {
        return (CycList) response;
      }
    }
    String request;
    if (command instanceof CycList) {
      request = ((CycList) command).cyclify();
    } else {
      request = (String) command;
    }
    throw new CycApiException(response.toString() + "\nrequest: " + request);
  }