code: public Map<String, Result> makeResultMap(ResponseCtx resCtx) {
          @SuppressWarnings("unchecked")
          Iterator<Result> i = resCtx.getResults().iterator();
  
          Map<String, Result> resultMap = new HashMap<String, Result>();
  
          while (i.hasNext()) {
              Result r = i.next();
              resultMap.put(r.getResource(), r);
          }
  
          return resultMap;
      }
docs: Returns a map of resource-id, result based on an XACML response.
  
  @param resCtx
  the XACML response
  @return the Map of resource-id and result