byte[] request) {
if (currentUserEmail != null && !env.getEmail().equals(currentUserEmail)) {
String message =
String.format("remote API call: user '%s' can't use client that's logged in as '%s'",
env.getEmail(), currentUserEmail);
throw new ApiProxyException(message);
}
return makeDefaultSyncCall(serviceName, methodName, request);
}