+
+ protected Document executeMethod(HttpClient client, HttpMethod method) throws TransformerException {
+ int triesLeft = _maxTries;
+ while ( triesLeft > 0 ) {
+ triesLeft--;
+ try {
+ return executeMethodWithoutRetries(client, method);
+ } catch (TransformerException e) {
+ if ( triesLeft == 0 ) {
+ throw e;
+ }
+ }
+ }
+ throw new RuntimeException("Code should never reach this point");
+ }
+