As a follow up to #173, it would be valuable for the new_relic_agent framework to look at the current JAVA_OPTS, and only add to the configuration map if the key is not already defiened. This would allow users to override values if they desire.
Something along the lines of:
def apply_user_configuration(credentials, configuration, java_opts)
credentials.each do |key, value|
configuration[key] = value unless java_opts.contains_system_property("newrelic.config.#{key}")
end
end