code: function(sessionId, value) {
          this.statusCode = 200;
          if (arguments.length > 0) {
              // write something, only if there is something to write
              this.writeJSONAndClose(_buildSuccessResponseBody(sessionId, value));
          } else {
              this.closeGracefully();
          }
      }
docs: private: