code: protected void generateMethodBody(SourceWriter sourceWriter, TreeLogger logger, GeneratorContext context,
        JMethod method) {
  
      JParameter[] methodParameters = method.getParameters();
      if (methodParameters.length > 0) {
  
        sourceWriter.print("Map<String, Object> ");
        sourceWriter.print(VARIABLE_ARGUMENTS);
        sourceWriter.println(" = new HashMap<String, Object>();");
  
        // loop over parameters and generate code that puts the parameters into the arguments map
        for (JParameter parameter : methodParameters) {
          String name;
          Named namedAnnotation = parameter.getAnnotation(Named.class);
          if (namedAnnotation == null) {
            name = parameter.getName();
          } else {
            name = namedAnnotation.value();
          }
          sourceWriter.print(VARIABLE_ARGUMENTS);
          sourceWriter.print(".put(\"");
          sourceWriter.print(escape(name));
          sourceWriter.print("\", ");
          sourceWriter.print(parameter.getName());
          sourceWriter.println(");");
        }
      }
  
      sourceWriter.print("String ");
      generateMethodMessageBlock(sourceWriter, logger, context, method.getName());
  
      generateCreateMessageBlock(sourceWriter, methodParameters.length > 0);
    }
docs: Generates an the body of an {@link NlsBundle}-method.
  
  @param sourceWriter is the {@link SourceWriter}.
  @param logger is the {@link TreeLogger}.
  @param context is the {@link GeneratorContext}.
  @param method is the {@link NlsBundle}-method to generate an implementation for.