MethodInvocation topTimestamp = ast.newMethodInvocation();
topTimestamp.setExpression(ast
.newSimpleName(CHECKPOINT_RECORD_NAME));
topTimestamp.setName(ast.newSimpleName("getTopTimestamp"));
commitFields.arguments().add(topTimestamp);
body.statements().add(ast.newExpressionStatement(commitFields));
// Add a call to the commit method in the superclass, if necessary.
SuperMethodInvocation superRestore = ast.newSuperMethodInvocation();
superRestore
.setName(ast.newSimpleName(_getCommitMethodName(false)));