public String runInTransaction(final String callableResult) {
    // [START runInTransaction]
    TransactionCallable<String> callable =
        new TransactionCallable<String>() {
          public String run(DatastoreReaderWriter readerWriter) {
            // use readerWriter to run in transaction
            return callableResult;
          }
        };
    String result = datastore.runInTransaction(callable);
    // [END runInTransaction]
    return result;
  }
public String runInTransaction ( final String callableResult ) { TransactionCallable < String > callable = new TransactionCallable < String > ( ) { public String run ( DatastoreReaderWriter readerWriter ) { return callableResult ; } } ; String result = datastore . runInTransaction ( callable ) ; return result ; }
[VARIABLE "my_callable_result"]