List<FlowRule> rules = new LinkedList<>();
rules = createRules(intent, intent.getSrc(), intent.getDst(), path, slotsMap, false);
if (intent.isBidirectional()) {
rules.addAll(createRules(intent, intent.getDst(), intent.getSrc(), path, slotsMap, true));
}
<BUG>return Collections.singletonList(new FlowRuleIntent(appId, intent.key(),
rules, ImmutableSet.copyOf(path.links())));

}</BUG>
throw new OpticalIntentCompilationException("Unable to find suitable lightpath for intent " + intent);

List<FlowRule> rules = new LinkedList<>();
rules = createRules(intent, intent.getSrc(), intent.getDst(), path, slotsMap, false);
if (intent.isBidirectional()) {
rules.addAll(createRules(intent, intent.getDst(), intent.getSrc(), path, slotsMap, true));
