EventLog l = new EventLog(); l.setAction(action); l.setType(klass.getName()); l.setIdList(id.toString()); l.setDetails(CurrentDetails.createDetails()); l.getGraphHolder().setToken(null, token);  CurrentDetails.getCreationEvent().addEventLog(l);
CurrentDetails.addLog( action, klass, id );
	public void addLog(String action, Class klass, Long id) {		Assert.notNull(action);		Assert.notNull(klass);		Assert.notNull(id);		if (Event.class.isAssignableFrom(klass)				|| EventLog.class.isAssignableFrom(klass)				|| EventDiff.class.isAssignableFrom(klass)) {			log.debug("Not logging creation of logging type:" + klass);		}		else {			checkReady("addLog");			log.info("Adding log:" + action + "," + klass + "," + id);			EventLog l = new EventLog();			l.setAction(action);			l.setType(klass.getName()); // TODO could be id to Type entity			l.setIdList(id.toString());			l.setDetails(CurrentDetails.createDetails());			l.getGraphHolder().setToken(null, token);			CurrentDetails.getCreationEvent().addEventLog(l);		}	}