code: def _build_new_template(self, stack, parameters):
          
          log_lines = ["New template parameters:"]
          for param in sorted(parameters,
                              key=lambda param: param['ParameterKey']):
              log_lines.append("%s = %s" % (param['ParameterKey'],
                                            param['ParameterValue']))
  
          log_lines.append("\nNew template contents:")
          log_lines.append("".join(stack))
          return log_lines
docs: Constructs the parameters & contents of a new stack and returns a
          list(str) representation to be output to the user