code: public static OperationBuilder write(final Object value)
     {
        return new Response() {
           @Override
           public void performHttp(final HttpServletRewrite event, final EvaluationContext context)
           {
              try {
                 if (value != null)
                    event.getResponse().getWriter().write(value.toString());
              }
              catch (IOException e) {
                 throw new RewriteException("Could not write value [" + value + "] to response stream.", e);
              }
           }
  
           @Override
           public String toString()
           {
              return "Response.write(\"" + value + "\")";
           }
        };
     }
docs: Create an {@link Operation} that writes the {@link String} value of the given {@link Object} to the current
  {@link HttpServletResponse} upon execution. The value to be written is obtained using {@link Object#toString()}.