IResource[] resources = null;
for (int i = 0; i < traversals.length; i++) {
traversal = traversals[i];</BUG>
resources = traversal.getResources();
if (resources != null) {
<BUG>for (int j = 0; j < resources.length; j++) {
result.add(resources[j]);
</BUG>
}
}

IResource[] resources = null;
for (ResourceTraversal traversal : traversals) {
resources = traversal.getResources();
if (resources != null) {
for (IResource traversalResource : resources) {
result.add(traversalResource);
