static final Logger log = LoggerFactory.getLogger(Versioner.class);
@Override
public void onEvent(Event4 e, EventArgs args) {
final ObjectEventArgs queryArgs = ((ObjectEventArgs) args);
final Object o = queryArgs.object();
if(o instanceof IVersionSupport) {
final Integer cv = ((IVersionSupport) o).getVersion();
((IVersionSupport) o).setVersion(Integer.valueOf(cv == null ? 0 : cv.intValue() + 1));
log.debug("Versioned entity: " + o);
}