If you want to add the parameter in every case you should use add line like:
JAVA_OPTS="$JAVA_OPTS -Dcom.sun........"
because otherwise the option is only added if you did not set JAVA_OPTS before starting the script.
We change run.conf and set JAVA_OPTS in every case to avoid confusing behaviour depends to the environment :)