code: public static Dictionary<String, String> convertInitParams(
  			final WebAppInitParam[] initParams) {
  		if (initParams == null || initParams.length == 0) {
  			return null;
  		}
  		Hashtable<String, String> dictionary = new Hashtable<>();
  		for (WebAppInitParam initParam : initParams) {
  			dictionary.put(initParam.getParamName(), initParam.getParamValue());
  		}
  		return dictionary;
  	}
docs: Converts an array of init params to a Dictionary.
  
  @param initParams array to be converted
  @return Dictionary of init params