code: private static StringBuilder buildAbsoluteFinalFile(String file,
  			String basePath, File destinationFolder, boolean isFlatten) {
  		StringBuilder retval = new StringBuilder(
  				destinationFolder.getAbsolutePath());
  		PathUtils.addEndingSlashIfNeeded(retval);
  		if (!isFlatten) {
  			// delete output directory from basePath
  			String relativePath = file.replace(basePath, "");
  			retval.append(relativePath);
  		} else {
  			// skip location file
  			String relativePath = new File(file).getName();
  			retval.append(relativePath);
  		}
  		return retval;
  	}
docs: <p>
  returns the absolute path to the final based file output folder where the
  resource is configured
  </p>
  
  @param file
  Relative file from remote resource
  @param basePath
  Absolute path to outputdirectory
  @param destinationFolder
  Relative sub path from output directory
  @param isFlatten
  @return absolute path file in output directory