code: protected boolean configureOAuth2Token(final GitHubClient client,
  			final String oauth2Token) {
  		if (StringUtils.isEmpty(oauth2Token))
  			return false;
  
  		if (isDebug())
  			debug("Using OAuth2 access token authentication");
  		client.setOAuth2Token(oauth2Token);
  		return true;
  	}
docs: Configure credentials from configured OAuth2 token
  
  @param client
  @param oauth2Token
  @return true if configured, false otherwise