code: private void setupRequestProperties(HttpURLConnection connection, Map<String, Object> properties) {
  		Set<Entry<String, Object>> entries = properties.entrySet();
  		for (Entry<String, Object> e : entries) {
  			String name = e.getKey();
  			Object value = e.getValue();
  
  			if (name != null && value != null) {
  				connection.setRequestProperty(name, value.toString());
  			}
  		}
  	}
docs: region Connection