/** * @param userConfig Properties to dump into config directory * @since 5.4.2 */ public void dumpProperties(CryptoProperties userConfig) { Properties dumpedProperties = filterSystemProperties(userConfig); File dumpedFile = generator.getDumpedConfig(); try (OutputStreamWriter os = new OutputStreamWriter(new FileOutputStream(dumpedFile, false), "UTF-8")) { dumpedProperties.store(os, "Generated by " + getClass()); } catch (FileNotFoundException e) { log.error(e); } catch (IOException e) { log.error("Could not dump properties to " + dumpedFile, e); } }