Add the switching logic to JConfig to set parameters depending on the environment.