private GoogleDocsClient(CLIHelper cliHelper) {
ClientConfig config = new ClientConfig();
if (cliHelper.hasProxy()) {
config.proxyHost(cliHelper.getProxyHost());
config.proxyPort(Integer.valueOf(cliHelper.getProxyPort()));
}
// add google authentication handler
config.handlers(new GoogleAuthHandler(cliHelper.getEmail(), cliHelper.getPassword()));
restClient = new RestClient(config);