Collection<AssertionSet[]> rows = new LinkedList<AssertionSet[]>();
for (String name : PolicyResourceLoader.SINGLE_ALTERNATIVE_POLICY) {
Iterator<AssertionSet> iteratorA = PolicyResourceLoader.loadPolicy(name).iterator();
Iterator<AssertionSet> iteratorB = PolicyResourceLoader.loadPolicy(name).iterator();
if (iteratorA.hasNext()) {
rows.add(new AssertionSet[] {iteratorA.next(), iteratorB.next()});
}
}
return rows.toArray(new AssertionSet[rows.size()][]);