code: @Override
      public String addPolicy(String name, String document)
      throws PolicyIndexException {
          writeLock.lock();
          try {
              logger.debug("Adding policy named: " + name);
              return doAdd(name, document);
          } finally {
              writeLock.unlock();
          }
      }
docs: /*
  (non-Javadoc)
  @see org.fcrepo.server.security.xacml.pdp.data.PolicyIndex#addPolicy(java.lang.String,
  java.lang.String)