else
return manager.getSalary(employee);
}
void setSalary() throws NumberFormatException, IllegalArgumentException, IOException {
Employee employee = userInterface.getEmployee();
Integer salary = userInterface.getSalary();
Employee actualEmployee;
if (useBus) {
actualEmployee = (Employee) invoke(HRSERVICE, "getEmployee", new Object[] {employee.getFirstName(), employee.getLastName()}, new String[] {"java.lang.String","java.lang.String"});
invoke(HRSERVICE, "setSalary", new Object[] {actualEmployee, salary}, new String[] {EMPLOYEE, "java.lang.Integer"});
} else {
actualEmployee = manager.getEmployee(employee.getFirstName(), employee.getLastName());