code: public static boolean      isRetryException(Throwable exception)
      {
          if ( exception instanceof KeeperException )
          {
              KeeperException     keeperException = (KeeperException)exception;
              return shouldRetry(keeperException.code().intValue());
          }
          return false;
      }
docs: Utility - return true if the given exception is retry-able
  
  @param exception exception to check
  @return true/false