class Neo4jItemWriterBuilder<T> {

	private boolean delete = false;

	private SessionFactory sessionFactory;

	/**
	 * Boolean flag indicating whether the writer should save or delete the item at write
	 * time.
	 * @param delete true if write should delete item, false if item should be saved.
	 * Default is false.
	 * @return The current instance of the builder
	 * @see Neo4jItemWriter#setDelete(boolean)
	 */
	public Neo4jItemWriterBuilder<T> delete(boolean delete) {
		this.delete = delete;

		return this;
	}

	/**
	 * Establish the session factory that will be used to create {@link Session} instances
	 * for interacting with Neo4j.
	 * @param sessionFactory sessionFactory to be used.
	 * @return The current instance of the builder
	 * @see Neo4jItemWriter#setSessionFactory(SessionFactory)
	 */
	public Neo4jItemWriterBuilder<T> sessionFactory(SessionFactory sessionFactory) {
		this.sessionFactory = sessionFactory;

		return this;
	}

	/**
	 * Validates and builds a {@link org.springframework.batch.item.data.Neo4jItemWriter}.
	 * @return a {@link Neo4jItemWriter}
	 */
	public Neo4jItemWriter<T> build() {<FILL_FUNCTION_BODY>}

}

		Assert.notNull(sessionFactory, "sessionFactory is required.");
		Neo4jItemWriter<T> writer = new Neo4jItemWriter<>();
		writer.setDelete(this.delete);
		writer.setSessionFactory(this.sessionFactory);
		return writer;
	
<no_super_class>