## Bug description `StepExecution` instances created via `MetaDataInstanceFactory.createStepExecution(JobParameters)` do not reference the provided `JobParameters`. This appears to be a side effect introduced by the following commit: https://github.com/spring-projects/spring-batch/commit/90d895955d951156849ba6fa018676273fdbe2c4 ## Environment Spring Batch v6.0.0 ## Steps to reproduce The following test case reproduces the bug: ```java @Test void testCreateStepExecutionJobParameters() { JobParameters parameters = new JobParametersBuilder() .addString("foo", "bar") .toJobParameters(); StepExecution stepExecution = MetaDataInstanceFactory.createStepExecution(parameters); String paramValue = stepExecution.getJobExecution().getJobParameters().getString("foo"); assertEquals("bar", paramValue); } ```