code: public void add(List<T> resources)
      {
          for(T resource : resources)
          {
              if(resource.getId() != null)
                  ids.put(resource.getId(), resource);
              if(resource instanceof NamedResource)
                  addName((NamedResource)resource);
          }
      }
docs: Adds a list of resources.
  @param resources The resources to add