public void addLog(ProcessLog processLog) {
if (!compositeLogStack.isEmpty()) {
CompositeLog currentCompositeLog = compositeLogStack.get(compositeLogStack.size() - 1);
processLog.setParent(currentCompositeLog);
currentCompositeLog.addChild(processLog);
}
processLog.setDate(Clock.getCurrentTime());
logs.add(processLog);
}