anchor.diff:          context: request.context);
     }
   }
  +
  +Future<DatastoreDB> _initializeApiaryDatastore() async {
  +  final projectId = Platform.environment['GCLOUD_PROJECT'];
  +  final gcloudKeyVar = Platform.environment['GCLOUD_KEY'];
  +  final serviceAccount = new auth.ServiceAccountCredentials.fromJson(
  +      new File(gcloudKeyVar).readAsStringSync());
  +
  +  final authClient =
  +      await auth.clientViaServiceAccount(serviceAccount, DatastoreImpl.SCOPES);
  +  registerScopeExitCallback(authClient.close);
  +
  +  final datastore = new DatastoreImpl(authClient, projectId);
  +  registerDatastoreService(datastore);
  +
  +  final db = new DatastoreDB(datastore);
  +  registerDbService(db);
  +
  +  return db;
  +}
  
positive.code: // BSD-style license that can be found in the LICENSE file.
  
  import 'dart:async';
  
  import 'package:appengine/appengine.dart';
  import 'package:gcloud/service_scope.dart';
  import 'package:gcloud/http.dart';
  import 'package:gcloud/storage.dart';
  import 'package:googleapis_auth/auth_io.dart' as auth;
  import 'package:path/path.dart' as path;
  
negative.code:             logger.severe('Request handler failed', error, stack);
            }
          }
        };
        if (Platform.isMacOS) {
          AppEngineRequestHandler origHandler = requestHandler;
          requestHandler = (ioRequest) {
            return fork(() {
              registerDbService(savedDb);
              return origHandler(ioRequest);
            });
          };
        }
        await runAppEngine(requestHandler);
      });
    });
  }
  