code: private void blacklist(String nodeName, ResourceType type) {
      List<ResourceType> blacklistedResourceTypes =
        blacklistedNodes.get(nodeName);
      if (blacklistedResourceTypes == null) {
        blacklistedResourceTypes = new ArrayList<ResourceType>();
        blacklistedNodes.put(nodeName, blacklistedResourceTypes);
      }
      synchronized (blacklistedResourceTypes) {
        if (!blacklistedResourceTypes.contains(type)) {
          blacklistedResourceTypes.add(type);
        }
      }
    }
docs: Blacklists a resource on a node.
  @param nodeName The node name.
  @param type The type of the resource.