public void advancedSearch(String tag) {
        listD = getAllMetaData();
        while(listD.size() > actual) {
            try{
                if (listD.getElementPosition(actual, 1).equals(tag)) {
                    listD1.addEnd(listD.getElementPosition(actual, 1), listD.getElementPosition(actual, 2), listD.getElementPosition(actual, 3), listD.getElementPosition(actual, 4), listD.getElementPosition(actual, 5), listD.getElementPosition(actual, 6), listD.getElementPosition(actual, 7));
                }
                else if (listD.getElementPosition(actual, 2).equals(tag)) {
                    listD1.addEnd(listD.getElementPosition(actual, 1), listD.getElementPosition(actual, 2), listD.getElementPosition(actual, 3), listD.getElementPosition(actual, 4), listD.getElementPosition(actual, 5), listD.getElementPosition(actual, 6), listD.getElementPosition(actual, 7));
                }
                else if (listD.getElementPosition(actual, 3).equals(tag)) {
                    listD1.addEnd(listD.getElementPosition(actual, 1), listD.getElementPosition(actual, 2), listD.getElementPosition(actual, 3), listD.getElementPosition(actual, 4), listD.getElementPosition(actual, 5), listD.getElementPosition(actual, 6), listD.getElementPosition(actual, 7));
                }
                else if (listD.getElementPosition(actual, 4).equals(tag)) {
                    listD1.addEnd(listD.getElementPosition(actual, 1), listD.getElementPosition(actual, 2), listD.getElementPosition(actual, 3), listD.getElementPosition(actual, 4), listD.getElementPosition(actual, 5), listD.getElementPosition(actual, 6), listD.getElementPosition(actual, 7));
                }
            }
            catch (java.lang.NullPointerException e) {
            }
            actual++;
            
        }
    }