[JBIDE-16519] updating to non deprecated method

Updating to use new non deprecated method for updating application environment variables, also have a pull request in to the OSJC to add the method on that side.