StringBuffer sb = new StringBuffer(jgalleryContextPath).append('/') .append(s1[0]).append('/'); StringBuffer sb1;
	private void calculateParentFolderList(String folderPath)	{		// folderPath is URL part after context		// e.g. /galleries/TemplateTest/		parentFolderList = new ArrayList();		String s = folderPath.substring(1, folderPath.length() - 1);		String hTMLBase = jgalleryContextPath;		String[] s1 = s.split("/");		String p = jgalleryContextPath;		StringBuffer sb = new StringBuffer(jgalleryContextPath).append('/')				.append(s1[0]).append('/');		StringBuffer sb1;		for (int i = 1; i < s1.length; i++)		{			sb1 = new StringBuffer(sb.toString()).append("index.").append(					configData.urlExtention);			parentFolderList.add(new ParentLink(s1[i - 1], sb1.toString()));			sb.append(s1[i]).append('/');		}		int x = 5;	}