class JmsItemReaderBuilder<T> {

	protected Class<? extends T> itemType;

	protected JmsOperations jmsTemplate;

	/**
	 * Establish the JMS template that will be used by the JmsItemReader.
	 * @param jmsTemplate a {@link JmsOperations} instance
	 * @return this instance for method chaining.
	 * @see JmsItemReader#setJmsTemplate(JmsOperations)
	 */
	public JmsItemReaderBuilder<T> jmsTemplate(JmsOperations jmsTemplate) {
		this.jmsTemplate = jmsTemplate;

		return this;
	}

	/**
	 * Set the expected type of incoming message payloads. Set this to {@link Message} to
	 * receive the raw underlying message.
	 * @param itemType the java class of the items to be delivered. Typically the same as
	 * the class parameter
	 * @return this instance for method chaining.
	 * @throws IllegalStateException if the message payload is of the wrong type.
	 * @see JmsItemReader#setItemType(Class)
	 */
	public JmsItemReaderBuilder<T> itemType(Class<? extends T> itemType) {
		this.itemType = itemType;

		return this;
	}

	/**
	 * Returns a fully constructed {@link JmsItemReader}.
	 * @return a new {@link JmsItemReader}
	 */
	public JmsItemReader<T> build() {<FILL_FUNCTION_BODY>}

}

		Assert.notNull(this.jmsTemplate, "jmsTemplate is required.");
		JmsItemReader<T> jmsItemReader = new JmsItemReader<>();

		jmsItemReader.setItemType(this.itemType);
		jmsItemReader.setJmsTemplate(this.jmsTemplate);
		return jmsItemReader;
	
<no_super_class>