} else if (result instanceof Hashtable) {
Hashtable compressed = (Hashtable) result;
SymbolDeserializer symbolDeserial = new SymbolDeserializer();
return new XMLResourceImpl(id, id, this, symbolDeserial.getSymbols(compressed), (byte[]) compressed.get("document"));
} else if (result instanceof byte[]) {
return new BinaryResourceImpl(id, this, (byte[]) result);
} else {
return new XMLResourceImpl(id, this, (String) result);
}
} catch (XMLDBException x) {