@Override
	public synchronized String getTransformedPath(SourceFile sourceFile,
			boolean useExistingAsDefault) {
		String sourceFileString = getString(sourceFile);
		String mappedFile = fileMap.get(sourceFileString);
		if (mappedFile != null) {
			return mappedFile;
		}
		String path = sourceFile.getPath();
		for (String src : pathMap.keySet()) {
			if (path.startsWith(src)) {
				return pathMap.get(src) + path.substring(src.length());
			}
		}
		return useExistingAsDefault ? path : null;
	}
Throws an {@link IllegalArgumentException} if {@code directory} is not
a valid, normalized directory path (with forward slashes).
@param directory path to validate
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/sourcemap/UserDataPathTransformer.java