class JobRepositoryParser extends AbstractSingleBeanDefinitionParser {

	@Override
	protected String getBeanClassName(Element element) {
		return "org.springframework.batch.core.repository.support.JobRepositoryFactoryBean";
	}

	@Override
	protected String resolveId(Element element, AbstractBeanDefinition definition, ParserContext parserContext)
			throws BeanDefinitionStoreException {

		String id = element.getAttribute(ID_ATTRIBUTE);
		if (!StringUtils.hasText(id)) {
			id = "jobRepository";
		}

		return id;

	}

	/**
	 * Parse and create a bean definition for a
	 * {@link org.springframework.batch.core.repository.support.JobRepositoryFactoryBean}
	 * .
	 */
	@Override
	protected void doParse(Element element, ParserContext parserContext, BeanDefinitionBuilder builder) {<FILL_FUNCTION_BODY>}

}


		CoreNamespaceUtils.autoregisterBeansForNamespace(parserContext, element);

		String dataSource = element.getAttribute("data-source");

		String jdbcOperations = element.getAttribute("jdbc-operations");

		String transactionManager = element.getAttribute("transaction-manager");

		String isolationLevelForCreate = element.getAttribute("isolation-level-for-create");

		String tablePrefix = element.getAttribute("table-prefix");

		String maxVarCharLength = element.getAttribute("max-varchar-length");

		String lobHandler = element.getAttribute("lob-handler");

		String serializer = element.getAttribute("serializer");

		String conversionService = element.getAttribute("conversion-service");

		RuntimeBeanReference ds = new RuntimeBeanReference(dataSource);
		builder.addPropertyValue("dataSource", ds);
		RuntimeBeanReference tx = new RuntimeBeanReference(transactionManager);
		builder.addPropertyValue("transactionManager", tx);
		if (StringUtils.hasText(jdbcOperations)) {
			builder.addPropertyReference("jdbcOperations", jdbcOperations);
		}
		if (StringUtils.hasText(isolationLevelForCreate)) {
			builder.addPropertyValue("isolationLevelForCreate",
					DefaultTransactionDefinition.PREFIX_ISOLATION + isolationLevelForCreate);
		}
		if (StringUtils.hasText(tablePrefix)) {
			builder.addPropertyValue("tablePrefix", tablePrefix);
		}
		if (StringUtils.hasText(lobHandler)) {
			builder.addPropertyReference("lobHandler", lobHandler);
		}
		if (StringUtils.hasText(maxVarCharLength)) {
			builder.addPropertyValue("maxVarCharLength", maxVarCharLength);
		}
		if (StringUtils.hasText(serializer)) {
			builder.addPropertyReference("serializer", serializer);
		}
		if (StringUtils.hasText(conversionService)) {
			builder.addPropertyReference("conversionService", conversionService);
		}

		builder.setRole(BeanDefinition.ROLE_SUPPORT);

	
<methods>public void <init>() <variables>