DirectoryDialogDefault ddd = new DirectoryDialogDefault(this, true, null, directoryDanger.getDirectoryTitle(), directoryDanger);
ddd.setVisible(true);
if (ddd.getDlgResult() == ModalDialog.DLG_OK) {
Selector s = ddd.getSelectedItems();
for (int i = 0; i < s.size(); i++) {
DangerJobDetails djd = new DangerJobDetails();
DirectoryDangerItem ddi = (DirectoryDangerItem)s.get(i);
djd.dangerId = ddi.getID();
djd.jobId = jobLocal.getID();
DangerExamChunk chunk = new DangerExamChunk(djd);
System.out.println("create DANGER CHUNK, job: " + chunk.getDetails().jobId);