RemoteApiDelegate globalRemoteApiDelegate =
createDelegate(finalOptions, client, originalDelegate);
ApiProxy.setDelegate(globalRemoteApiDelegate);
ApiProxy.setEnvironmentFactory(new EnvironmentFactory() {
@Override
public Environment newEnvironment() {
return createEnv(finalOptions, client);
}
});