if ( document instanceof DBDocument ) {
// This is a shitty shitty hack... Kill immediately
DBDocument dbDoc = (DBDocument)document;
if ( dbDoc.getSource() == null )
dbDoc.setSource(new NodeSource(this, key));
}
Value value = null;
if ( compressed ) {
try {
byte[] b = DOMCompressor.Compress(document, symbols);
value = new Value(b);
document = new DocumentImpl(b, symbols, new NodeSource(this, key));
}
catch ( Exception e ) {
throw new DBException(FaultCodes.COL_CANNOT_STORE, "Error storing Document '"+key+"'", e);
}
} else {