* @return connection
* @throws IOException
* @throws OozieClientException
*/
protected HttpURLConnection createRetryableConnection(final URL url, final String method) throws IOException{
return (HttpURLConnection) new ConnectionRetriableClient(getRetryCount()) {
@Override
public Object doExecute(URL url, String method) throws IOException, OozieClientException {
HttpURLConnection conn = createConnection(url, method);
return conn;
}