if (!(refChild instanceof StoredNode))
{throw new DOMException(DOMException.WRONG_DOCUMENT_ERR, "Wrong node type");}
final NodeListImpl nl = new NodeListImpl();
nl.add(newChild);
final TransactionManager transact = ownerDocument.getBrokerPool().getTransactionManager();
final Txn transaction = transact.beginTransaction();
DBBroker broker = null;
try {
broker = ownerDocument.getBrokerPool().get(null);
insertBefore(transaction, nl, refChild);
broker.storeXMLResource(transaction, (DocumentImpl) getOwnerDocument());