code: function(session, req, result) {
          // Convert string to JSON
          if (typeof(result) === "string") {
              try {
                  result = JSON.parse(result);
              } catch (e) {
                  // In case the conversion fails, report and "Invalid Command Method" error
                  _errors.handleInvalidReqInvalidCommandMethodEH(req, this);
              }
          }
  
          // In case the JSON doesn't contain the expected fields
          if (result === null ||
              typeof(result) === "undefined" ||
              typeof(result) !== "object" ||
              typeof(result.status) === "undefined" ||
              typeof(result.value) === "undefined") {
              _errors.handleFailedCommandEH(_errors.FAILED_CMD_STATUS_CODES.UnknownError,
                  "Command failed without producing the expected error report",
                  req,
                  this,
                  session);
              return;
          }
  
          // An error occurred but we got an error report to use
          if (result.status !== 0) {
              _errors.handleFailedCommandEH(result.status,
                  result.value.message,
                  req,
                  this,
                  session);
              return;
          }
  
          // If we arrive here, everything should be fine, birds are singing, the sky is blue
          this.success(session.getId(), result.value);
      }
docs: private: