code: public synchronized void incrementLoad(ResourceType type) {
      Integer load = typeToTotalLoad.get(type);
      assert(load != null);
      typeToTotalLoad.put(type, load + 1);
    }
docs: Increment the number of running resources of a given type.
  @param type the resource type.