public static void showAvgSallaryPerDepartment(Context rootContext, boolean useCriteria)
	{
		EmployeeService empService = rootContext.lookupService("EmployeeService", EmployeeService.class);
		
		Map<String, Double> avgSallary = useCriteria ? empService.getAvgSallaryInEachDepartmentCriteria() : empService.getAvgSallaryInEachDepartment();
		
		for (Map.Entry<String, Double> entry : avgSallary.entrySet())
		{
			System.out.println(entry.getKey() + " = " + entry.getValue());
		}
	}