public AnswerHandler(FOLKnowledgeBase kb, Sentence query,
long maxQueryTime) {
finishTime = System.currentTimeMillis() + maxQueryTime;
Sentence refutationQuery = new NotSentence(query);
// Want to use an answer literal to pull
// query variables where necessary
Literal answerLiteral = kb.createAnswerLiteral(refutationQuery);
answerLiteralVariables = kb.collectAllVariables(answerLiteral
.getAtomicSentence());
// Create the Set of Support based on the Query.
if (answerLiteralVariables.size() > 0) {
Sentence refutationQueryWithAnswer = new ConnectedSentence(
Connectors.OR, refutationQuery, answerLiteral
.getAtomicSentence().copy());
sos = createChainsFromClauses(kb
.convertToClauses(refutationQueryWithAnswer));