final List outputClusters = output.clusters;
final HitsCluster [] clusters = new HitsCluster[ outputClusters.size() ];
int j = 0;
for (Iterator i = outputClusters.iterator(); i.hasNext(); j++) {
RawCluster rcluster = (RawCluster) i.next();
clusters[j] = new HitsClusterAdapter(rcluster, hitDetails);
}
// invoke Carrot2 process here.
return clusters;