docs: protected ResourceFormatParser getResourceFormatParser() throws ResourceModelSourceException {
          try {
              String format = getResourceFormat();
              if (null != format) {
                  return framework.getResourceFormatParserService()
                                  .getParserForFormat(format);
              } else {
                  return framework.getResourceFormatParserService()
                                  .getParserForFileExtension(getDocumentFileExtension());
              }
          } catch (UnsupportedFormatException e) {
              throw new ResourceModelSourceException(e);
          }
      }