private void putResultIntoCache(String tokenIdStr,String resource,Map envParams,PolicyDecision pd) throws SSOException, DelegationException {
  if (resource != null) {
    List<Object> al=new ArrayList<Object>(2);
    al.add(0,envParams);
    al.add(1,pd);
synchronized (delegationCache) {
      Map<String,List<Object>> items=delegationCache.get(tokenIdStr);
      if (items == null) {
        items=Collections.synchronizedMap(new HashMap<String,List<Object>>());
        delegationCache.put(tokenIdStr,items);
      }
      items.put(resource,al);
    }
  }
}

private void putResultIntoCache ( String tokenIdStr , String resource , Map envParams , PolicyDecision pd ) throws SSOException , DelegationException { if ( resource != null ) { List < Object > al = new ArrayList < Object > ( 2 ) ; al . add ( 0 , envParams ) ; al . add ( 1 , pd ) ; synchronized ( delegationCache ) { Map < String , List < Object > > items = delegationCache . get ( tokenIdStr ) ; if ( items == null ) { items = Collections . synchronizedMap ( new HashMap < String , List < Object > > ( ) ) ; delegationCache . put ( tokenIdStr , items ) ; } items . put ( resource , al ) ; } } }
adds the data in the delegation cache .
