class JmsMethodInvocationRecoverer<T> implements MethodInvocationRecoverer<T> {

	protected Log logger = LogFactory.getLog(getClass());

	private JmsOperations jmsTemplate;

	/**
	 * Setter for jms template.
	 * @param jmsTemplate a {@link JmsOperations} instance
	 */
	public void setJmsTemplate(JmsOperations jmsTemplate) {
		this.jmsTemplate = jmsTemplate;
	}

	/**
	 * Send one message per item in the arguments list using the default destination of
	 * the jms template. If the recovery is successful {@code null} is returned.
	 *
	 * @see org.springframework.retry.interceptor.MethodInvocationRecoverer#recover(Object[],
	 * Throwable)
	 */
	@Override
	@Nullable
	public T recover(Object[] items, Throwable cause) {<FILL_FUNCTION_BODY>}

}

		try {
			for (Object item : items) {
				jmsTemplate.convertAndSend(item);
			}
			return null;
		}
		catch (JmsException e) {
			logger.error("Could not recover because of JmsException.", e);
			throw e;
		}
	
<no_super_class>