/** Create a new context ID and a environment map which we send to the client. */
  protected void setNewContextFactory() {
    env = (Map) getProcessEnvironment().clone();

    addNewContextFactory();

    // short path S1: no PUT request
    ContextServer contextServer = getContextServer();
    AbstractChannelName channelName = contextServer.getChannelName(ctx);
    if (channelName != null) {
      env.put("X_JAVABRIDGE_REDIRECT", channelName.getName());
      ctx.getBridge();
      contextServer.start(channelName, Util.getLogger());
    }

    setStandardEnvironmentValues(env);
  }