return targets != null ? new SliceInfo(replicated, targets) : null;
}
private static void assertSlices(String[] targets, Object pc, List<String> actives, Object policy) {
if (targets == null || targets.length == 0)
throw new UserException(_loc.get("no-policy-slice", new Object[] {
policy.getClass().getName(), pc, actives}));
for (String target : targets)
if (!actives.contains(target))
throw new UserException(_loc.get("bad-policy-slice",
new Object[] {policy.getClass().getName(), target, pc,
actives}));
}