return createPolicy(null);
}
public Policy createPolicy(URI id)
{
final Target target = getTarget().getTarget();
final RuleCombiningAlgorithm algorithm = (RuleCombiningAlgorithm)getCombiningAlgorithm();
final List<Rule> rawRules = new ArrayList<Rule>(rules.size());
for(final RuleNode rule : rules)
rawRules.add(rule.createRule());
final URI useId = (id == null) ? getId() : id;
return new Policy(useId, algorithm, getDescription(), target, rawRules);