if (routeType.getInputs() != null && !routeType.getInputs().isEmpty()) {
// configure the outputs
List<ProcessorDefinition> outputs = new ArrayList<ProcessorDefinition>(routeType.getOutputs());
// clearing the outputs
routeType.clearOutput();
// add the output configure the outputs with the routeType
for (ProcessorDefinition processorType : outputs) {
routeType.addOutput(processorType);
}