private void process(SortedSet<Attribute> headings, SortedSet<Tuple> result, Tuple tuple1, Tuple tuple2) {
Map<Attribute, Node> allAttributeValuePairs = new HashMap<Attribute, Node>();
Map<Attribute, Node> lhsAttributeValuePairs = new HashMap<Attribute, Node>();
boolean contradiction = false;
for (Attribute attribute : headings) {
Node avp1 = tuple1.getValue(attribute);
Node avp2 = tuple2.getValue(attribute);
contradiction = addAttributeValuePair(attribute, avp1, avp2, allAttributeValuePairs,
lhsAttributeValuePairs);
// If we didn't find one for the current heading end early.
if (contradiction) {