public void addCreatedResource(Location location,Resource resource){
  resourceList.add(resource);
  locationToResourceMap.put(location,resource);
}

public void addCreatedResource ( Location location , Resource resource ) { resourceList . add ( resource ) ; locationToResourceMap . put ( location , resource ) ; }
add a resource created within the analyzed method .
