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

...rvers.
I initially followed the convention from the BaseProcessDiscovery class. Switched the code to use discovery context.