result = employeeEntity;
}
if (source instanceof Mechanic) {
MechanicEntity mechanicEntity = new MechanicEntity();
mechanicEntity.setId(source.getId());
mechanicEntity.setEmail(source.getEmail());
mechanicEntity.setName(source.getName());
mechanicEntity.setPassword(source.getPassword());
mechanicEntity.setPatronymic(source.getPatronymic());
mechanicEntity.setPhone(source.getPhone());
mechanicEntity.setPosition(source.getPosition());
mechanicEntity.setRole(source.getRole());
mechanicEntity.setSalary(source.getSalary());
mechanicEntity.setSurname(source.getSurname());
mechanicEntity.setAverageRating(((Mechanic) source)
.getAverageRating());
mechanicEntity.setCurrentOrdersAmount(((Mechanic) source)
.getCurrentOrdersAmount());
result = mechanicEntity;
}