public void notifyDataAvailable(AvailableData availableData, boolean lastData) {		
		contents.append(" " + "\r\n");
		contents.append("----- New data available. -----------" + "\r\n");		
		if(availableData.getObjectDescriptors() != null){
			List<ObjectDescriptor> listObjDescs = availableData.getObjectDescriptors().getObjectDescriptor();
			if(listObjDescs.size() > 0){
				contents.append("AvailableData object descriptors: " +  "\r\n");
			}
			for(int i = 0; i < listObjDescs.size(); i++){			
				contents.append(i + ". " + listObjDescs.get(i).getUuid().getUuid() +  "   MIME: " + listObjDescs.get(i).getMimeType() + "\r\n");
				uuids.add(listObjDescs.get(i).getUuid());
			}
			contents.append("\r\n");
		}		
		List<Patient> patients = availableData.getPatients().getPatient();		
		for(int i = 0; i < patients.size(); i++){
			Patient patient = patients.get(i);
			contents.append(i + ". Patient name: " + patient.getName() +  "\r\n");
			List<Study> studies = patient.getStudies().getStudy();
			for(int j = 0; j < studies.size(); j++){
				Study study = studies.get(j);
				contents.append(j + ". StudyUID : " + study.getStudyUID() +  "\r\n");
				List<Series> listOfSeries = study.getSeries().getSeries();
				for(int k = 0; k < listOfSeries.size(); k++){
					Series series = listOfSeries.get(k);			
					contents.append(k + ". SeriesUID: " + series.getSeriesUID() + "\r\n");			
					ArrayOfObjectDescriptor descriptors = series.getObjectDescriptors();
					List<ObjectDescriptor> listDescriptors = descriptors.getObjectDescriptor();
					for(int m =0;  m < listDescriptors.size(); m++){
						ObjectDescriptor desc = listDescriptors.get(m);
						uuids.add(desc.getUuid());
						contents.append( desc.getUuid().getUuid()+ "   " + desc.getModality().getModality() + "   " + desc.getMimeType() + "\r\n");
					}
					contents.append("\r\n");
				}
				contents.append("\r\n");
			}
			contents.append("\r\n");
		}		
		contents.repaint();		
	}