code: boolean expiringSoon(TokenInfo info) {
          // TODO(jasonhall): Consider varying the definition of "soon" based on the
          // original expires_in value (e.g., "soon" = 1/10th of the total time before
          // it's expired).
          return Double.valueOf(info.getExpires()) < (clock.now() + TEN_MINUTES);
      }
docs: Returns whether or not the token will be expiring within the next ten minutes.