private static final int MAX_WAVELETS_PER_TRANSACTION = 300;
private void storeResults(List<RemoteConvWavelet> results) throws PermanentFailure {
for (final List<RemoteConvWavelet> partition
: Iterables.partition(results, MAX_WAVELETS_PER_TRANSACTION)) {
new RetryHelper().run(
new RetryHelper.VoidBody() {
@Override public void run() throws RetryableFailure, PermanentFailure {
CheckedTransaction tx = datastore.beginTransaction();
try {
if (perUserTable.addRemoteWavelets(tx, userId, partition)) {