code: @Override
      public boolean contains(String policyName)
              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);
              }
          } finally {
              DbXmlManager.readLock.unlock();
          }
  
          return true;
      }
docs: Check if the policy identified by policyName exists.
  
  @param policyName
  @return true iff the policy store contains a policy identified as
  policyName
  @throws PolicyIndexException