code: static Hashtable<String, String> generateJmxTable(Map<String, String> variables) {
  		Hashtable<String, String> ht = new Hashtable<>(variables.size());
  		for (Map.Entry<String, String> variable : variables.entrySet()) {
  			ht.put(replaceInvalidChars(variable.getKey()), replaceInvalidChars(variable.getValue()));
  		}
  		return ht;
  	}
docs: ------------------------------------------------------------------------