deviceLayoutContext = new MyDeviceLayoutContext();
sfi2 = new SpatialFormatIterator(null);
sfi2.setInstance(0);
sfi2Instance = new SpatialFormatIteratorInstance(
NDimensionalIndex.ZERO_DIMENSIONS);
sfi2Instance.setDeviceLayoutContext(deviceLayoutContext);
sfi2Instance.setFormat(sfi2);
sfi = new SpatialFormatIterator(null);
sfi.setInstance(1);
sfiInstance = new SpatialFormatIteratorInstance(
NDimensionalIndex.ZERO_DIMENSIONS);
sfiInstance.setDeviceLayoutContext(deviceLayoutContext);
sfiInstance.setFormat(sfi);
deviceLayoutContext.setFormatInstance(sfi,