* no context, the operation will fail.
*
* @throws IllegalStateException if there is no context
*/
private void determineHeaderFormat() {
DatabaseContext dbCtx = (DatabaseContext)
ContextService.getContext(DatabaseContext.CONTEXT_ID);
if (dbCtx == null) {
throw new IllegalStateException("No context, unable to determine " +
"which stream header format to generate");
} else {
DataDictionary dd = dbCtx.getDatabase().getDataDictionary();
try {
isPreDerbyTenFive = Boolean.valueOf(!dd.checkVersion(
DataDictionary.DD_VERSION_DERBY_10_5, null));
} catch (StandardException se) {
// This should never happen as long as the second argument