code: public void storeToYAML(final Properties props, final OutputStream os, final String header, final String encoding)
  			throws IOException {
  		try {
  			((PrefixedProperties) props).storeToYAML(os, header, encoding);
  		} catch (final ClassCastException err) {
  			throw new IOException(
  					"Cannot store properties JSON file - not using PrefixedProperties: " + err.getMessage());
  		}
  	}
docs: Store to json.
  
  @param props
  the props
  @param os
  the os
  @param header
  the header
  @param encoding
  the encoding
  @throws IOException
  Signals that an I/O exception has occurred.