public JobParameters getJobParametersForMap(Map<?, ?> map) {

		final Properties parametersAsProperties = new Properties();

		if (map != null) {
			parametersAsProperties.putAll(map);
		}

		return this.getJobParameters(parametersAsProperties);
	}
Will convert the provided {@link Map} into {@link JobParameters}. The method will ultimately call
{@link #getJobParameters(Properties)}.

@param map Can be null or an empty {@link Map}.
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/plugins/job/ExpandedJobParametersConverter.java