class AddTimestampFilter extends AbstractFilter<ObjectNode, ObjectNode> {

	@Override
	protected ObjectNode doFilter(ObjectNode node) throws FilterException {
		try {
			node.put(DEFAULT_KEY_NAME, LocalDateTime.now().truncatedTo(ChronoUnit.SECONDS).toString());
		} catch (Exception ex) {
			throw new FilterException("Unable to add timestamp to object node", ex);
		}
		return node;
	}

	@Inject  AddTimestampFilter(
			@Assisted DataSource source,
			MetricRegistry registry);

}