* Due to pb dependency issues, Transaction pb is redefined for TaskQueue.
* Keep in sync with DatastoreServiceImpl.localTxnToRemoteTxn.
*/
private static Transaction localTxnToRemoteTxn(
com.google.appengine.api.datastore.Transaction local) {
Transaction remote = new Transaction();
remote.setApp(local.getApp());
remote.setHandle(Long.parseLong(local.getId()));
return remote;
}