code: private void addPolicy(String pid, InputStream dsContent) throws GeneralException {
          LOG.info("Adding policy " + pid);
  
          String policy;
  
          try {
              policy = IOUtils.toString(dsContent);
              dsContent.close();
              m_policyIndex.addPolicy(pid, policy);
          } catch (IOException e) {
              throw new GeneralException("Error adding policy " + pid + " to policy index: " + e.getMessage(), e);
          } catch (PolicyIndexException e) {
              throw new GeneralException("Error adding policy " + pid + " to policy index: " + e.getMessage(), e);
          }
  
  
      }
docs: TODO: invalidate PEP cache on the following operations