code: @Override
  	protected Environment createEnvironment() {
  		HttpServletRequest request = getBackingRequest();
  		String postPath = getResponseUrl(request);
  		String baseUrl = getBaseUrl(request);
  		String userAgent = request.getHeader("user-agent");
  
  		/**
  		 * Careful - this won't be serializable
  		 */
  		HttpServletEnvironment env = new HttpServletEnvironment(postPath, baseUrl, userAgent);
  		if (request instanceof SubSessionHttpServletRequestWrapper) {
  			env.setSubsessionId(((SubSessionHttpServletRequestWrapper) request).getSessionId());
  		}
  
  		return env;
  	}
docs: {@inheritDoc}