policy = (PolicyDefinition) type;
} else if (type instanceof TransactedDefinition) {
transacted = (TransactedDefinition) type;
} 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);
}
}