code: private SessionThrottleFilterConfig getConfigFromWebXML(FilterConfig filterConfig){
  		int limit = -1;
  
  		String l = filterConfig.getInitParameter("limit");
  		try{
  			if (l!=null)
  				limit = Integer.parseInt(l);
  		}catch(NumberFormatException ignored){
  			//ignored.
  		}
  
  		String target = filterConfig.getInitParameter("redirectTarget");
  		if (target==null || target.length()==0)
  			limit = -1;
  
  		return new SessionThrottleFilterConfig(limit, target);
  
  	}
docs: Reads config from web.xml.
  @param filterConfig
  @return