code: public static Object[] stringListToArray(List<String> list) {
  		Object[] params = null;
  		if (list != null) {
  			params = list.toArray(new String[list.size()]);
  		}
  		return params;
  	}
docs: Converts list of strings to an array.
  
  @param list a list of strings to be converted
  @return an array