public void setDevice(){
        boolean hasMake = false;
        boolean hasModel = false;
        ExifIFD0Directory dir = md.getDirectory(ExifIFD0Directory.class);

        if (dir == null) {
            return;
        }
        for (final Tag t: dir.getTags()) {
            if (t.getTagName().equals("Make")) {
                data.put(PHOTO_COLUMN_DEVICE_MAKE, t.getDescription());
                hasMake = true;
                if (hasModel) {
                    break;
                }
            }
            if (t.getTagName().equals("Model")) {
                data.put(PHOTO_COLUMN_DEVICE_MODEL, t.getDescription());
                hasModel = true;
                if (hasMake) {
                    break;
                }
            }
        }
        if (!hasMake) {
             LGR.log(Level.WARNING,
                    "device make information missing for {0}", localPath);           
        }
        if (!hasModel) {
            LGR.log(Level.WARNING,
                    "device model information missing for {0}", localPath);            
        }
    }