253254255256257258259260261262263
{ Substitution thetaPrime = Unifier.unify(sentence, instantiation.getHead()); if ( thetaPrime!=null ) { Substitution thetaCopy = theta.copy(); thetaCopy = thetaCopy.compose(thetaPrime); instantiate(template, index + 1, thetaCopy, results); } } }