void (final String data) { try { File configFile = getConfigFile(); FileUtil.createParentDirs(configFile); try (Writer out = new BufferedWriter(new FileWriter(configFile))) { out.write(data); myConfiguration = data; } } catch (IOException e) { LOG.info("Cannot save configuration of " + myConfiguration, e); } }