[BZ 1069648] Persist JAVA_OPTS from connection settings for Standalone se...

...rvers.
I think you can use discoveryContext.getSystemInformation().getOperatingSystemType() instead of this