log.debug("aPrefix + aPath " + aPrefix + " " + aPath);
log.debug("aPrefix + aPath " + localRoot + " " + aPath); log.debug("aPrefix + aPath " + userHome + " " + aPath); log.debug("aPrefix + aPath " + systemRoot + " " + aPath);
	public String encodePathForFile(File aFile) {		String aPrefix = null;		String aPath = null;		try {			//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());			//            }			aPrefix = localRoot();			if (log.isDebugEnabled()) {				log.debug("aPrefix + aPath " + aPrefix + " " + aPath);			}			if ((aPrefix != null)				&& (aPrefix.length() > 1)				&& (aPath.startsWith(aPrefix))) {				return "LOCALROOT" + aPath.substring(aPrefix.length());			}			aPrefix = userHome();			if (log.isInfoEnabled()) {				log.info("aPrefix + aPath " + aPrefix + " " + aPath);			}			if ((aPrefix != null)				&& (aPrefix.length() > 1)				&& (aPath.startsWith(aPrefix))) {				return "HOMEROOT" + aPath.substring(aPrefix.length());			}			aPrefix = systemRoot();			if (log.isInfoEnabled()) {				log.info("aPrefix + aPath " + aPrefix + " " + aPath);			}			if ((aPrefix != null)				&& (aPrefix.length() > 1)				&& (aPath.startsWith(aPrefix))) {				return "WOROOT" + aPath.substring(aPrefix.length());			}			return aPath;		} catch (Exception anException) {                        log.error("Exception occured during encoding of the path " + anException, anException);		} finally {			aPrefix = null;			aPath = null;		}		return null;	}