code: protected boolean isTokenExpiring(final Token token) {
  
  		log.debug("OAuthTokenManager.isTokenExpiring");
  
  		final long currentTime = System.currentTimeMillis() / 1000L;
  
  		if (currentTime > token.getRefreshTime()) {
  			log.debug("Token is expiring");
  			return true;
  		} else {
  			log.debug("Token is not expiring." + token.getRefreshTime() + " > " + currentTime);
  			return false;
  		}
  	}
docs: Check if the current cached token is expiring in less than the given
  offset. If it is, an asynchronous call is made to the IAM service to
  update the cache.
  
  @param token
  The IAM Token object
  
  @return boolean Indicates if the currently cached token is due refresh