if (index >= 0 && !tmp.equals("/")) {
if (index >= 0 && !currentFolderPath.equals("/")) {
	public String getCurrentResourceName() {		if (currentResourceName == null) {			currentResourceName = "";			String tmp = null;			if (rootFolder != null) {				tmp = currentFolderPath.replaceAll(rootFolder, "");			} else {				tmp = currentFolderPath;			}			int index = tmp.lastIndexOf("/");			try {				if (index >= 0 && !tmp.equals("/")) {					currentResourceName = " ("+tmp.substring(index+1)+")";				}			} catch (ArrayIndexOutOfBoundsException e) {				currentResourceName = "";			}		}		return currentResourceName;	}