code: protected boolean isCharsetSupported(String charsetName) {
  		// Charset.isSupproted throws RuntimeException if charset
  		// is not supported (wow!!)
  		try {
  			return charsetName != null && Charset.isSupported(charsetName);
  		} catch (IllegalCharsetNameException ex) {
  			return false;
  		}
  	}
docs: test if {@code charsetName} is supported by Java.
  @param charsetName character encoding name
  @return {@code true} if supported.