code: public static Response success(SessionId sessionId, Object value) {
      Response response = new Response();
      response.setSessionId(sessionId != null ? sessionId.toString() : null);
      response.setValue(value);
      response.setStatus(ErrorCodes.SUCCESS);
      response.setState(ErrorCodes.SUCCESS_STRING);
      return response;
    }
docs: Creates a response object for a successful command execution.
  
  @param sessionId ID of the session that executed the command.
  @param value the command result value.
  @return the new response object.