throw new IllegalStateException("No context, unable to determine " +
"which stream header format to generate");
} else {
DataDictionary dd = dbCtx.getDatabase().getDataDictionary();
try {
inSoftUpgradeMode = Boolean.valueOf(!dd.checkVersion(
DataDictionary.DD_VERSION_DERBY_10_5, null));
} catch (StandardException se) {
// This should never happen as long as the second argument
// above is null. If it happens, just bomb out.
IllegalStateException ise =