static Client getClient(String uri, String method) { if (TGMockService.shouldApplyMock(uri, method)!) { return new TGMockClient(getMockClientHandler); } else { return new TGHttpClient(); } }