ostream.writeByte(DOCUMENT_NODE_SIGNATURE);
	public byte[] serialize() {		final VariableByteOutputStream ostream = new VariableByteOutputStream(7);		try {		    ostream.writeByte(DOCUMENT_NODE_SIGNATURE);			if(children > 0) {			    for(int i = 0; i < children; i++) {					ostream.writeInt(StorageAddress.pageFromPointer(childList[i]));					ostream.writeShort(StorageAddress.tidFromPointer(childList[i]));			    }			}			((DocumentTypeImpl) docType).write(ostream);			ostream.writeLong(created);			ostream.writeLong(lastModified);			ostream.writeInt(pageCount);			final byte[] data = ostream.toByteArray();			ostream.close();			return data;		} catch (IOException e) {			LOG.warn("io error while writing document data", e);			return null;		}	}