jsonReader.readNext(OJSONReader.COMMA_SEPARATOR);
listener.onMessage("\nRebuilding indexes of truncated clusters ...");
for (final String indexName : indexesToRebuild)
database.getMetadata().getIndexManager().getIndex(indexName).rebuild(new OProgressListener() {
@Override
public void onBegin(Object iTask, long iTotal, Object metadata) {
listener.onMessage("\nCluster content was truncated and index " + indexName + " will be rebuilt");
}