docs: public static String getFullFilename(String strFilename, String strSubDirectory, String fileLocation, boolean fixRelativePaths)
     {
  	   String localLocation = fileLocation.substring(fileLocation.lastIndexOf('/') + 1);
         if (((strFilename.indexOf(File.separator) == -1) && (strFilename.indexOf('/') == -1)) && (strSubDirectory != null))
             strFilename = fileLocation + File.separator + strSubDirectory + File.separator + strFilename;
         else if ((strFilename.indexOf(localLocation + File.separator) == -1) && (strFilename.indexOf(localLocation + "/") == -1))
             strFilename = fileLocation + File.separator + strFilename;
         else if ((strFilename.indexOf(localLocation + File.separator) == 0) || (strFilename.indexOf(localLocation + "/") == 0))
             strFilename = fileLocation + strFilename.substring(localLocation.length());
  	   if (fixRelativePaths)
  	   {	// Remove '/../'
  		   while (strFilename.indexOf("/..") != -1)
  		   {
  			   int startPath = strFilename.indexOf("/..");
  			   int startPrev = strFilename.lastIndexOf("/", startPath - 1);
  			   if (startPrev == -1)
  				   break;
  			   strFilename = strFilename.substring(0, startPrev) + strFilename.substring(startPath + 3);
  		   }
  	   }
         return strFilename;
     }