throws PolicyIndexException {
log.debug("Determining if document exists: " + policyName);
DbXmlManager.readLock.lock();
try {
m_dbXmlManager.container.getDocument(policyName,
new XmlDocumentConfig().setLazyDocs(true));
} catch (XmlException e) {
if (e.getErrorCode() == XmlException.DOCUMENT_NOT_FOUND) {
return false;
} else {
throw new PolicyIndexException("Error executing contains. " + e.getMessage(), e);