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 ; } }
Method updates the timestamp field of the given message with the current time . In case of an error the original message is returned .