} catch (IllegalAccessException e) {
log.error("Exception", e);
throw new IllegalStateException(e);
}
if (valueClass.equals(Cluster.class)) {
Cluster value = new Cluster();
while (reader.next(key, value)) {
// get the cluster info
SoftCluster theCluster = new SoftCluster(value.getCenter(), value.getId(), value.getMeasure());
clusters.add(theCluster);
value = new Cluster();
}
} else if (valueClass.equals(SoftCluster.class)) {
SoftCluster value = new SoftCluster();
while (reader.next(key, value)) {
// get the cluster info
clusters.add(value);
value = new SoftCluster();
}
} else if (valueClass.equals(Canopy.class)) {
Canopy value = new Canopy();
while (reader.next(key, value)) {
// get the cluster info
SoftCluster theCluster = new SoftCluster(value.getCenter(), value.getId(), value.getMeasure());
clusters.add(theCluster);
value = new Canopy();
}
}
} finally {