code: public static Integer lookup(String type) throws IllegalArgumentException {
      checkNotNull(type, "resource type was null");
      checkArgument(lookup.containsKey(type), "%s do not include %s; types: %s",
                    ResourceTypes.class.getSimpleName(),
                    type, EnumSet.allOf(ResourceTypes.class));
      return lookup.get(type);
    }
docs: look up the value (ex. {@code 28}) for the mnemonic name (ex. {@code AAAA} ).
  
  @param type type to look up. ex {@code AAAA}
  @throws IllegalArgumentException if the type was not configured.