if (address == BTree.KEY_NOT_FOUND) return null; final RecordPos rec = findRecord(address); SanityCheck.THROW_ASSERT(rec != null, "Node data could not be found! Page: " + StorageAddress.pageFromPointer(address) + "; tid: " + StorageAddress.tidFromPointer(address));
if (address == BTree.KEY_NOT_FOUND) return null; rec = findRecord(address); SanityCheck.THROW_ASSERT(rec != null, "Node data could not be found! Page: " + StorageAddress.pageFromPointer(address) + "; tid: " + StorageAddress.tidFromPointer(address)); }
	public String getNodeValue(StoredNode node, boolean addWhitespace) {		try {			long address = node.getInternalAddress();			if (address == StoredNode.UNKNOWN_NODE_IMPL_ADDRESS)				address = findValue(this, new NodeProxy(node));			if (address == BTree.KEY_NOT_FOUND)				return null;			final RecordPos rec = findRecord(address);			SanityCheck.THROW_ASSERT(rec != null,					"Node data could not be found! Page: "							+ StorageAddress.pageFromPointer(address)							+ "; tid: "							+ StorageAddress.tidFromPointer(address));			final ByteArrayOutputStream os = new ByteArrayOutputStream();			getNodeValue(os, rec, true, addWhitespace);			final byte[] data = os.toByteArray();			String value;			try {				value = new String(data, "UTF-8");			} catch (UnsupportedEncodingException e) {				value = new String(data);			}			return value;		} catch (BTreeException e) {			LOG.warn("btree error while reading node value", e);		} catch (IOException e) {			LOG.warn("io error while reading node value", e);		}		return null;	}