@Override
	public void update(Observable o, Object arg) {
		if(arg instanceof ScanPlan){
			int Id = ((ScanPlan)arg).getId();
			int status = ((ScanPlan)arg).getEndIbm();
			System.out.println("Notification from Thread"+Id+" to change status to:"+status);
			databaseSourceDriver.updateScanPlan(Id,status);
		}
		else if(arg instanceof ArrayList<?>){
			System.out.println("Notification of ArrayList");
			ArrayList<CheckResult> resList = ((ArrayList<CheckResult>)arg);
			for(Iterator<CheckResult> it = resList.iterator();it.hasNext();){
				CheckResult res = it.next();
				System.out.println(res.getName()+" "+res.getRisk());
				databaseSource.writeCheckRes(res);
			}
		}	
	}