code: public TIFFField getField(int tag) {
          Integer i = (Integer)fieldIndex.get(Integer.valueOf(tag));
          if (i == null) {
              return null;
          } else {
              return fields[i.intValue()];
          }
      }
docs: Returns the value of a given tag as a TIFFField,
  or null if the tag is not present.