} /**
}
	public String encodePathForFile(File aFile) {		String userHome = null;		String systemRoot = null;		String localRoot = null;		String aPath = null;		try {			localRoot = localRoot();			userHome = userHome();			systemRoot = systemRoot();			int localRootLength = 0;			int userHomeLength = 0;			int systemRootLength = 0;			if (localRoot != null)				localRootLength = localRoot.length();			if (userHome != null)				userHomeLength = userHome.length();			if (systemRoot != null)				systemRootLength = systemRoot.length();			//aPath = aFile.getCanonicalPath();			//u.k. the CanonicalPath will resolve links this will			//result in path with /Versions/a in it			aPath = aFile.getPath();			//            aPrefix = this.getAppRootPath();			//            if((aPrefix != null) && (aPrefix.length() > 1) && (aPath.startsWith(aPrefix))) {			//            	return "APPROOT" + aPath.substring(aPrefix.length());			//            }			if (log.isDebugEnabled()) {				log.debug("aPrefix + aPath " + localRoot + " " + aPath);				log.debug("aPrefix + aPath " + userHome + " " + aPath);				log.debug("aPrefix + aPath " + systemRoot + " " + aPath);			}			if (localRoot != null && aPath.startsWith(localRoot)) {				boolean otherRoot = false;				if (localRootLength < userHomeLength					&& aPath.startsWith(userHome))					otherRoot = true;				if (localRootLength < systemRootLength					&& aPath.startsWith(systemRoot))					otherRoot = true;				if (!otherRoot) {					if (localRootLength == 1) //MacOSX						return "LOCALROOT" + aPath;					return "LOCALROOT" + aPath.substring(localRootLength);				}			}			if (userHome != null && aPath.startsWith(userHome)) {				boolean otherRoot = false;				if (userHomeLength < systemRootLength					&& aPath.startsWith(systemRoot))					otherRoot = true;				if (!otherRoot)					return "HOMEROOT" + aPath.substring(userHomeLength);			}			if ((systemRoot != null) && (aPath.startsWith(systemRoot))) {				return "WOROOT" + aPath.substring(systemRootLength);			}			return aPath;		} catch (Exception anException) {			log.error(				"Exception occured during encoding of the path " + anException,				anException);		} finally {			localRoot = null;			userHome = null;			systemRoot = null;			aPath = null;		}		return null;	} /**