@Override public void authorizeRequest(HttpURLConnection con) throws IOException { try { createToken(r).asCredential().authorizeRequest(con); } catch (OauthClientException e) { throw (IOException)new IOException("Failed to authenticate the request").initCause(e); } } };