int readerCount = inputs.get(port).size();
if (readerCount > 1) {
Pipe pipe = new Pipe(runtime);
pipe.setWriter(step);
pipe.setReader(step);
pipe.canWriteSequence(true);
pipe.canReadSequence(input.getSequence());
for (ReadablePipe reader : inputs.get(port)) {
if (reader.moreDocuments()) {
while (reader.moreDocuments()) {
XdmNode doc = reader.read();