// Save config options of resource
saveConfigOptions(logElem, (IConfigurableObject) log.getAdapter(IConfigurableObject.class));
}
try {
// Save to state file
rootElem.save(new BufferedWriter(new OutputStreamWriter(
FileUtils.openOutputStream(stateFile.toFile()), "UTF-8"))); //$NON-NLS-1$
} catch (IOException e) {
// Unexpected exception; wrap with CoreException
throw new CoreException(new Status(IStatus.ERROR, UIPlugin.PLUGIN_ID,
NLS.bind(Messages.LogResourceManager_error_failedToUpdateState,