configFile = new File(binDirectory, "standalone.conf");
additionalJavaOptsConfig = new AdditionalJavaOpts.LinuxConfiguration();
}
try {
javaOptsAdditionalValue = additionalJavaOptsConfig.discover(configFile);
} catch (Exception e) {
log.error("Unable to discover additional JAVA_OPTS set via RHQ from configuration file.", e);
}
discoveredResource.getPluginConfiguration().setSimpleValue(JAVA_OPTS_ADDITIONAL_PROP, javaOptsAdditionalValue);