package edu.yu.einstein.wasp.batch;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.batch.item.ItemReader;

// Generic State Reader, 
// takes in StateIds
// and forwards them to ItemProcessor

// @ // Component
public class StateReader implements ItemReader {

	private final Log logger = LogFactory.getLog(getClass());

	private int index = 0;

	Integer stateId = null;

	public void setStateId(Integer stateId) {
		this.stateId = stateId;
	}

	public Integer getStateId() {
		return this.stateId;
	}

	@Override
	public Integer read() {

		if (this.stateId == null)
			return null;

		log.info("Reader State: " + this.stateId);
		Integer rt = this.getStateId();
		setStateId(null);

		return rt;
	}
}

@@ -329,16 +329,23 @@
 private 
+static 
 final Lo
@@ -377,18 +377,25 @@
 Log(
-getC
+StateReader.c
 lass
-()
 );%0A%0A
@@ -663,16 +663,19 @@
 ;%0A%0A%09%09log
+ger
 .info(%22R

fix for incomplete fix