public Employee createEmployee(String name, float sallary, Date hireDate, String desc, EmployeeType type, Company company ,Address address, int depId, int parkingSpaceId)
	{
		try
		{
			DepartmentService deptService = lookupService(DEPT_SRV, DepartmentService.class);
			Department employeeDepartment = deptService.findDepartment(depId);
			
			if (employeeDepartment == null)
			{
				throw new ServiceException("Department with id " + depId +  " was not found");
			}
			
			ParkingSpaceService parkService = lookupService(PARK_SRV, ParkingSpaceService.class);
			ParkingSpace parkingSpace = parkService.findParkingSpace(parkingSpaceId);
			
			if (parkingSpace == null)
			{
				throw new ServiceException("Parking space with id " + parkingSpaceId + " was not found");
			}
			
			begin();
			
			Employee employee = new Employee(name, sallary, hireDate, desc, type, employeeDepartment, parkingSpace);
			employee.setAddress(address);
			employee.setCompany(company);
			manager.persist(employee);
			
			commit();
			
			return employee;
		}
		catch(PersistenceException e)
		{
			e.printStackTrace();
			rollback();
			throw e;
		}
	}