// instantiate each object as a tuple.
Tuple t1 = mFact.newTuple();
Tuple t2 = mFact.newTuple();
try {
t1.readFields(new DataInputStream(new ByteArrayInputStream(b1, s1, l1)));
t2.readFields(new DataInputStream(new ByteArrayInputStream(b2, s2, l2)));
} catch (IOException ioe) {
mLog.error("Unable to instantiate tuples for comparison: " + ioe.getMessage());
throw new RuntimeException(ioe.getMessage(), ioe);
}