code: @Override
      public AbstractPolicy getPolicy(String name, PolicyFinder policyFinder) throws PolicyIndexException {
          log.debug("Getting document: " + name);
          XmlDocument doc = null;
          DbXmlManager.readLock.lock();
          try {
              doc = m_dbXmlManager.container.getDocument(name);
              return handleDocument(m_policyReader.readPolicy(doc.getContent()), policyFinder);
          } catch (XmlException xe) {
              throw new PolicyIndexException("Error getting Policy: " + name + xe.getMessage()  + " - " + xe.getDatabaseException().getMessage(), xe);
          } catch (ParsingException pe) {
              throw new PolicyIndexException("Error getting Policy: " + name + pe.getMessage(), pe);
          } finally {
              DbXmlManager.readLock.unlock();
          }
      }
docs: /*
  (non-Javadoc)
  @see
  org.fcrepo.server.security.xacml.pdp.data.PolicyDataManager#getPolicy
  (java.lang.String)