docs: public ResourceFormatGenerator getGeneratorForFileExtension(final File file) throws UnsupportedFormatException {
          String extension = file.getName().lastIndexOf(".") > 0 ? file.getName().substring(file.getName().lastIndexOf(
              ".") + 1) : null;
          if (null != extension) {
              return getGeneratorForFileExtension(extension);
          } else {
              throw new UnsupportedFormatException("Could not determine format for file: " + file.getAbsolutePath());
          }
      }