pm.currentTransaction().begin();
// compare persisted and new
int size = rootList.size();
StringBuffer msg = new StringBuffer();
for (int i = 0; i < size; i++) {
DeepEquality expected = (DeepEquality) rootList.get(i);
Object oid = rootOids.get(i);
Object persisted = pm.getObjectById(oid);
EqualityHelper equalityHelper = new EqualityHelper();
if (!expected.deepCompareFields(persisted, equalityHelper)) {
if (msg.length() > 0) {
msg.append("\n");
}
msg.append("Expected this instance:\n " +
expected + "\n" +