public static List<Integer> toIntegerList(List<String> strList, boolean failOnException){
		List<Integer> intList = new ArrayList<Integer>();
		for(String str : strList){
			try{
				intList.add(Integer.parseInt(str));
			}
			catch(NumberFormatException nfe){
				if(failOnException){
					return null;
				}
				else{
					intList.add(null);
				}
			}
		}
		return intList;
	}