code: private int attributeMap(String name) {
          Integer num = map.get(name);
          if (num == null) {
              return 0;
          }
          return num.intValue();
      }
docs: Returns the integer attribute number for the passed attribute name.