docs: @Override
  	public LoginResult handle(HttpServletRequest request, HttpServletResponse response) {
  		String userName = request.getRemoteUser();
  		if (userName != null && userName.trim().length() > 0) {
  			LoginResult result;
  			ContainerPreAuthCallbackHandler callbackHandler = new ContainerPreAuthCallbackHandler(userName);
  			result = authenticate(callbackHandler, null);
  			//result = new LoginResult(LoginResult.STATUS_SUCCEEDED);
  			logger.debug("handle() called for user '" + userName 
  					+ "', LoginResult.statues=" + result.getStatus() 
  					+ ", LoginResult.subject=" + result.getSubject());
  			
  			/*
  			logger.debug("using PlainTextCallbackHandler");
  			CredentialsCallbackHandler callbackHandler2 = new PlainTextCallbackHandler(userName, "Test123Test".toCharArray());
  			authenticate(callbackHandler2, SecuritySupportBase.DEFAULT_JAAS_LOGIN_CHAIN);
  			LoginResult result = new LoginResult(LoginResult.STATUS_SUCCEEDED);
  			*/
  			return result;
  		}else{
  			logger.debug("handle() called but the user has not been authenticated by the container.");
  		}
  		return LoginResult.NOT_HANDLED;
  	}