code: protected void generateMethodCreateBundle(SourceWriter sourceWriter, TreeLogger logger,
        GeneratorContext context) {
  
      // method declaration
      sourceWriter.print("public <BUNDLE extends ");
      sourceWriter.print(NlsBundle.class.getSimpleName());
      sourceWriter.println("> BUNDLE createBundle(Class<BUNDLE> bundleInterface) {");
      sourceWriter.indent();
  
      // method body
      sourceWriter.println("BUNDLE bundle = getBundle(bundleInterface);");
      sourceWriter.println("if (bundle == null) {");
      sourceWriter.indent();
      // create and register
      generateBlockBundleCreation(sourceWriter, logger, context);
      sourceWriter.outdent();
      sourceWriter.println("}");
  
      sourceWriter.println("return bundle;");
  
      // end method...
      sourceWriter.outdent();
      sourceWriter.println("}");
  
    }
docs: Generates the {@code createBundle} method.
  
  @param sourceWriter is the {@link SourceWriter}.
  @param logger is the {@link TreeLogger}.
  @param context is the {@link GeneratorContext}.