code: public void generateFromResources(TypeDef model, String resourceName) throws IOException {
          try {
              generateFromResources(model, processingEnv
                      .getFiler()
                      .createSourceFile(model.getFullyQualifiedName()), resourceName);
          } catch (FilerException e) {
              //TODO: Need to avoid dublicate interfaces here.
          }
      }
docs: Generates a source file from the specified {@link io.sundr.codegen.model.TypeDef}.
  @param model                     The model of the class to generate.
  @param resourceName              The template to use.
  @throws IOException              If it fails to create the source file.