private int parseAndSaveToAlbum(Map root, Album album, boolean firstElementCount) {
        int count = 0;
        ArrayList<Object> photosMapsTmp = (ArrayList<Object>) root.get(RESPONSE);
        if (firstElementCount) {
            count = ((Double) photosMapsTmp.get(0)).intValue();
            photosMapsTmp.remove(0);
        }

        ArrayList<Map<String, Object>> photosMaps = new ArrayList<>();
        for (Object obj : photosMapsTmp) {
            System.out.println("obj : " + obj);
            photosMaps.add((Map<String, Object>) obj);
        }

        // ArrayList<Map<String, Object>> photosMaps = (ArrayList<Map<String, Object>>) root.get(RESPONSE);
        for (Map photoMap : photosMaps) {

            Photo photo = new Photo();
            photo.setText((String) photoMap.get(TEXT));
            String src = null;
            String[] keys = {"src_xxxbig", "src_xxbig", "src_xbig", "src_big", "src"};
            for (String key : keys) {
                src = (String) photoMap.get(key);
                if (src != null && !src.equals("null")) {
                    break;
                }
            }
            photo.setSrc(src);
            photo.setLikes(((Double) ((Map) (photoMap.get(LIKES))).get(COUNT)).intValue());
            photo.setCreated(new Date(((Double) photoMap.get(CREATED)).longValue() * 1000));
            photo.setAlbum(album);
            if (!photoContainsInAlbums(photo)) {
                album.addPhoto(photo);
                System.out.println(photo);
            }
        }
        return count;

    }