class JobParserJobFactoryBean implements SmartFactoryBean<FlowJob> {

	private final String name;

	private Boolean restartable;

	private JobRepository jobRepository;

	private JobParametersValidator jobParametersValidator;

	private JobExecutionListener[] jobExecutionListeners;

	private JobParametersIncrementer jobParametersIncrementer;

	private Flow flow;

	/**
	 * Constructor for the factory bean that initializes the name.
	 * @param name The name to be used by the factory bean.
	 */
	public JobParserJobFactoryBean(String name) {
		this.name = name;
	}

	@Override
	public final FlowJob getObject() throws Exception {<FILL_FUNCTION_BODY>}

	/**
	 * Set the restartable flag for the factory bean.
	 * @param restartable The restartable flag to be used by the factory bean.
	 */
	public void setRestartable(Boolean restartable) {
		this.restartable = restartable;
	}

	/**
	 * Set the {@link JobRepository} for the factory bean.
	 * @param jobRepository The {@link JobRepository} to be used by the factory bean.
	 */
	public void setJobRepository(JobRepository jobRepository) {
		this.jobRepository = jobRepository;
	}

	/**
	 * Set the {@link JobParametersValidator} for the factory bean.
	 * @param jobParametersValidator The {@link JobParametersValidator} to be used by the
	 * factory bean.
	 */
	public void setJobParametersValidator(JobParametersValidator jobParametersValidator) {
		this.jobParametersValidator = jobParametersValidator;
	}

	/**
	 * @return The {@link JobRepository} used by the factory bean.
	 */
	public JobRepository getJobRepository() {
		return this.jobRepository;
	}

	public void setJobExecutionListeners(JobExecutionListener[] jobExecutionListeners) {
		this.jobExecutionListeners = jobExecutionListeners;
	}

	/**
	 * Set the {@link JobParametersIncrementer} for the factory bean.
	 * @param jobParametersIncrementer The {@link JobParametersIncrementer} to be used by
	 * the factory bean.
	 */
	public void setJobParametersIncrementer(JobParametersIncrementer jobParametersIncrementer) {
		this.jobParametersIncrementer = jobParametersIncrementer;
	}

	/**
	 * Set the flow for the factory bean.
	 * @param flow The {@link Flow} to be used by the factory bean.
	 */
	public void setFlow(Flow flow) {
		this.flow = flow;
	}

	@Override
	public Class<FlowJob> getObjectType() {
		return FlowJob.class;
	}

	@Override
	public boolean isSingleton() {
		return true;
	}

	@Override
	public boolean isEagerInit() {
		return true;
	}

	@Override
	public boolean isPrototype() {
		return false;
	}

}

		Assert.isTrue(StringUtils.hasText(name), "The job must have an id.");
		FlowJob flowJob = new FlowJob(name);

		if (restartable != null) {
			flowJob.setRestartable(restartable);
		}

		if (jobRepository != null) {
			flowJob.setJobRepository(jobRepository);
		}

		if (jobParametersValidator != null) {
			flowJob.setJobParametersValidator(jobParametersValidator);
		}

		if (jobExecutionListeners != null) {
			flowJob.setJobExecutionListeners(jobExecutionListeners);
		}

		if (jobParametersIncrementer != null) {
			flowJob.setJobParametersIncrementer(jobParametersIncrementer);
		}

		if (flow != null) {
			flowJob.setFlow(flow);
		}

		flowJob.afterPropertiesSet();
		return flowJob;
	
<no_super_class>