code: public <T> TypeDef createTypeFromTemplate(T model, String[] parameters, String content) {
          try (StringWriter writer = new StringWriter()) {
              new CodeGeneratorBuilder<T>()
                      .withContext(context)
                      .withModel(model)
                      .withParameters(parameters)
                      .withWriter(writer)
                      .withTemplateContent(content)
                      .build()
                      .generate();
  
              ByteArrayInputStream bis = new ByteArrayInputStream(writer.toString().getBytes());
              return Sources.FROM_INPUTSTEAM_TO_SINGLE_TYPEDEF.apply(bis);
          } catch (IOException e) {
              return null;
          }
      }
docs: Generate a {@link TypeDef} from the specified model, parameters and template.