code: protected boolean configureUsernamePassword(final GitHubClient client,
  			final String userName, final String password) {
  		if (StringUtils.isEmpty(userName, password))
  			return false;
  
  		if (isDebug())
  			debug("Using basic authentication with username: " + userName);
  		client.setCredentials(userName, password);
  		return true;
  	}
docs: Configure credentials from configured username/password combination
  
  @param client
  @param userName
  @param password
  @return true if configured, false otherwise