docs: public boolean matchResourceType(String name, int id) {
  
          if (hasResourceType(name)) {
              try {
                  return getResourceType(name).getTypeId() == id;
              } catch (Exception e) {
                  // should never happen because we already checked with hasResourceType, still have to
                  // catch it so the compiler is happy
                  LOG.error(e.getLocalizedMessage(), e);
                  return false;
              }
          } else {
              return false;
          }
      }