code: public static int getTagId(String name) {
      int id = -1;
      try {
        if (instance == null)
          getTiffTags();
      } catch (ReadTagsIOException e) {
        /*Nothing to be shown*/
      }
      if (tagNames.containsKey(name))
        id = tagNames.get(name).getId();
      return id;
    }
docs: Gets the tag id.
  
  @param name the name
  @return the tag id