}
String parent = sb.toString();
    public void loadFolder() throws GalleryException    {        if (!isDirectoryParsed)        {            // "/testalbum/second/"            String[] parts = folderPath.split("/");            StringBuffer sb = new StringBuffer();            if (parts.length > 2) // [0] is empty            {                sb.append('/');                for (int i = 1; i < parts.length; i++)                {                    level = i;                    sb.append(parts[i]);                    sb.append('/');                }            }            //String parent = folderPath.substring(0,            //      folderPath.lastindexOf('/',1)+1);            String parent = sb.toString();            if (parent.length() > 1)            {                // TODO                parentIndexPage = getHTMLBase() + parent + "/index.html";            }            else            {                parentIndexPage = ""; // set to non defined            }            imageFiles = directory.list(this);            imageCounters = new int[imageFiles.length];            Arrays.fill(imageCounters, -1);            endLoad();        }    }