} else if (policy != null) {
// the outputs should be moved to the policy
policy.addOutput(type);
} else if (transacted != null) {
// the outputs should be moved to the transacted policy
transacted.addOutput(type);
}
}
// did we find a policy if so replace it as the only output on the route
if (policy != null) {