additionalJavaOptsConfig = new AdditionalJavaOpts.LinuxConfiguration();
}
try {
if (additionalJavaOptsContent != null && !additionalJavaOptsContent.trim().isEmpty()) {
additionalJavaOptsConfig.update(configFile, additionalJavaOptsContent);
} else {
additionalJavaOptsConfig.clean(configFile);
}
} catch (Exception e) {
LOG.error("Unable to update configuration file with additional JAVA_OPTS set via RHQ.", e);