dao.insert(employee);
log.info("Employee {} information successfully inserted.", employee.getEmployeeName());
if (employee.getManager() != null)
{
SubordinatesCounter counter = new SubordinatesCounter();
counter.setNoOfSubordinates(1);
counter.setEmployeeId(employee.getManager().getEmployeeId());
dao.insert(counter);
log.info("Incremented no of subordinates for manager {}, successfully.", employee.getManager()
.getEmployeeName());
}
}