@Override
	public void onWriteError(Exception exception, List<? extends Object> items) {
		if (logger.isDebugEnabled()) {
			logger.debug("Executing onWriteError: " + exception.getMessage(), exception);
		}
		String payload = "Exception while " + items.size() + " items are attempted to be written.";
		publishWithThrowableHeader(payload, exception.getMessage());
	}
@author Gunnar Hillert
@author Ilayaperumal Gopinathan
@since 1.0
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/plugins/job/support/listener/SimpleXdItemListener.java