long duration = timeGenerator.generateTime();
context.getStaffPoolManager().registerPool(pi.getProcessId(), node, 1);
StaffPool pool = context.getStaffPoolManager().getActivityPool(node.getName());
long waitTime = pool.allocate(context.getClock().getCurrentTime());
double resourceUtilization = pool.getResourceUtilization();
// ensure that duration will include wait time
duration += waitTime;