if ((asnIndexRef != null) && asnIndexRef.getEnabled()) {
String asnLoc = asnIndexRef.getIndexLocation();
LOGGER.fine("Optimizing assertion index: "+asnLoc);
try {
long asnStartMillis = System.currentTimeMillis();
AsnIndexAdapter asnIndexAdapter = asnIndexRef.makeIndexAdapter(null);
asnIndexAdapter.optimize();
double asnSec = (System.currentTimeMillis() - asnStartMillis) / 1000.0;
StringBuffer msg = new StringBuffer();
msg.append("Optimization of assertion index complete: "+asnLoc);
msg.append(", runtime: ");