public JobParameters removeRestartParameterIfExists(JobParameters jobParameters) {

		Assert.notNull(jobParameters, "'jobParameters' must not be null.");

		final JobParametersBuilder jobParametersBuilder = new JobParametersBuilder();

		for (Map.Entry<String, JobParameter> entry : jobParameters.getParameters().entrySet()) {
			if (!IS_RESTART_JOB_PARAMETER_KEY.equalsIgnoreCase(entry.getKey())) {
				jobParametersBuilder.addParameter(entry.getKey(), entry.getValue());
			}
		}

		return jobParametersBuilder.toJobParameters();
	}
If {@link JobParameters} contains a parameters named {@value #IS_RESTART_JOB_PARAMETER_KEY} removed it.

@param jobParameters Must not be null
@return A new instance of {@link JobParameters}
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/plugins/job/ExpandedJobParametersConverter.java