} else {
rule.destination(RolePredicates.role(role));
}
List<String> ports = firewallRules.get(role);
rule.ports(Ints.toArray(Collections2.transform(ports, new Function<String,Integer>() {
@Override
public Integer apply(String input) {
return Integer.valueOf(input);
}
})));