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

...rvers.
Don't you want to add a few unit tests for update, discover and clean? It shouldn't be too difficult to code as you only need some sample files and check the results.