You actually probably want to merge this into `${java_opts}` so the `get_mem_opts` check works correctly.  If you need help on how to merge two arrays in bash, do:

```bash
java_opts=( "${JAVA_OPTS[@]}" "${SBT_OPTS[@]}" "${ACTIVATOR_OPTS[@]}" "${java_opts}" )
```

Also, I think priority order is "last one wins" for java command line options, so make sure the overrides are in the above order, which I think makes sense:

1. Command line argument options
2. ACTIVATOR specific options
3. SBT specific options
4. JVM generic options