code: static public String getBasicAuthUsername(HttpServletRequest request){
  		String[] userAndPassword = getBasicAuthUsernameAndPassword(request);
  		return userAndPassword == null || userAndPassword.length == 0 ? null : userAndPassword[0];
  	}
docs: Get the user name in the basic authentication header
  @param request	the http servlet request
  @return	the user name, or null if not found