Set Comment with specific date

Hi,
My application is uses Camunda 7.15 and requires creating task comments with a specific date. AddCommentCmd sets the time it was created.

comment.setTime(ClockUtil.getCurrentTime());

Would you suggest to create a subclass from AddCommentCmd to reimplement that behavior, then using the new Cmd in a new TaskServiceImpl and create subclass from ProcessEngineImpl to use the new taskServiceImpl?
If so, how can I register the new ProcessEngineImpl?
An example of a similar case will be very helpful.

Thanks in advance

Leandro