code: public static PolicyRestrictor lookupPolicyRestrictor(String pLocation) throws IOException {
          InputStream is;
          if (pLocation.startsWith("classpath:")) {
              String path = pLocation.substring("classpath:".length());
              is = ClassUtil.getResourceAsStream(path);
              if (is == null) {
                  is = RestrictorFactory.class.getResourceAsStream(path);
              }
          } else {
              URL url = new URL(pLocation);
              is = url.openStream();
          }
          return is != null ? new PolicyRestrictor(is) : null;
      }
docs: Lookup a restrictor based on an URL
  
  @param pLocation classpath or URL representing the location of the policy restrictor
  
  @return the restrictor created or <code>null</code> if none could be found.
  @throws IOException if reading of the policy stream failed