protected String createInferenceContinuationCommand(InferenceParameters queryProperties) {
    if (queryProperties == null) {
      queryProperties = new DefaultInferenceParameters(getCycServer());
    }
    if ((answerProcessingFunction != null) && (!answerProcessingFunction.shouldQuote())) {
      answerProcessingFunction = new CycSymbol(answerProcessingFunction.getPackageName(),
              answerProcessingFunction.getSymbolName());
    }
    String processingFnStr = ((answerProcessingFunction != null) ? answerProcessingFunction.stringApiValue() : "nil");
    queryProperties.put(new CycSymbol(":CONTINUABLE?"), Boolean.TRUE);
    return "(cdr (list (open-cyc-continue-query " + problemStoreId + " " + inferenceId + " " + queryProperties.stringApiValue() + " nil " + processingFnStr + " t)))";
  }