@SuppressWarnings("unchecked")
 public List<ProcessorDefinition> getOutputs() {
   if (otherwise != null) {
     return otherwise.getOutputs();
   } else if (whenClauses.isEmpty()) {
     return Collections.EMPTY_LIST;
   } else {
     WhenDefinition when = whenClauses.get(whenClauses.size() - 1);
     return when.getOutputs();
   }
 }