class JmsNewMethodArgumentsIdentifier<T> implements NewMethodArgumentsIdentifier {

	/**
	 * If any of the arguments is a message, check the JMS re-delivered flag and return
	 * it, otherwise return false to be on the safe side.
	 *
	 * @see org.springframework.retry.interceptor.NewMethodArgumentsIdentifier#isNew(java.lang.Object[])
	 */
	@Override
	public boolean isNew(Object[] args) {<FILL_FUNCTION_BODY>}

}


		for (Object item : args) {
			if (item instanceof Message) {
				try {
					return !((Message) item).getJMSRedelivered();
				}
				catch (JMSException e) {
					throw new UnexpectedInputException("Could not extract message ID", e);
				}
			}
		}
		return false;
	
<no_super_class>