code: private int getNoticesXmlResourceId() {
          int resourceId = R.raw.notices;
          final Bundle arguments = getArguments();
          if (arguments != null && arguments.containsKey(ARGUMENT_NOTICES_XML_ID)) {
              resourceId = arguments.getInt(ARGUMENT_NOTICES_XML_ID);
              if (!"raw".equalsIgnoreCase(getResources().getResourceTypeName(resourceId))) {
                  throw new IllegalStateException("not a raw resource");
              }
          }
  
          return resourceId;
      }
docs: ==========================================================================================================================