class BasicPartitioner extends SimplePartitioner {

	private static final String PARTITION_KEY = "partition";

	@Override
	public Map<String, ExecutionContext> partition(int gridSize) {<FILL_FUNCTION_BODY>}

}

		Map<String, ExecutionContext> partitions = super.partition(gridSize);
		int i = 0;
		for (ExecutionContext context : partitions.values()) {
			context.put(PARTITION_KEY, PARTITION_KEY + (i++));
		}
		return partitions;
	
<methods>public non-sealed void <init>() ,public Map<java.lang.String,org.springframework.batch.item.ExecutionContext> partition(int) <variables>private static final java.lang.String PARTITION_KEY