foundOutput = true;
ASTOutput output = (ASTOutput) j.next();
if (output.getName() == null)
throw new OXFException("Name attribute is mandatory on output");
if (output.getId() == null && output.getRef() == null)
<BUG>throw new OXFException("Either one of id or ref must be specified on output " + output.getName());
if (output.getRef() != null) {
ProcessorOutput pout = block.connectProcessorToBottomInput
(output.getNode(), processor, output.getName(), output.getRef());
</BUG>
setDebugAndSchema(pout, output);

foundOutput = true;
ASTOutput output = (ASTOutput) j.next();
if (output.getName() == null)
throw new OXFException("Name attribute is mandatory on output");
if (output.getId() == null && output.getRef() == null)
throw new OXFException("Either one of id or ref must be specified on output " + output.getName());
ProcessorOutput pout = processor.createOutput(output.getName());
if (output.getId() != null)
block.declareOutput(output.getNode(), output.getId(), pout);
if (output.getRef() != null)
block.connectProcessorToBottomInput
(output.getNode(), output.getName(), output.getRef(), pout);
setDebugAndSchema(pout, output);
