class TankRevisionListener implements RevisionListener {

    public void newRevision(Object revisionEntity) {
        TankRevisionInfo revisionInfo = (TankRevisionInfo) revisionEntity;
        revisionInfo.setUsername(ThreadLocalUsernameProvider.getUsernameProvider().getUserName());
    }

}