code: public static <M extends MessageOrBuilder> M updateTimestampWithCurrentTime(final M messageOrBuilder, final Logger logger) {
          try {
              return updateTimestampWithCurrentTime(messageOrBuilder);
          } catch (CouldNotPerformException ex) {
              ExceptionPrinter.printHistory(ex, logger);
              return messageOrBuilder;
          }
      }
docs: Method updates the timestamp field of the given message with the current time.
  In case of an error the original message is returned.
  
  @param <M>              the message type of the message to update.
  @param messageOrBuilder the message
  @param logger           the logger which is used for printing the exception stack in case something went wrong.
  
  @return the updated message or the original one in case of errors.