private static String getMountPathOf(String dir, String source) {
        if (StringUtils.isNotBlank(dir) && StringUtils.isNotBlank(source)) {
            String sourceDir = source;
            if (!sourceDir.endsWith(FILE_SEPARATOR)) {
                sourceDir += FILE_SEPARATOR;
            }
            String userHomeDir = USER_HOME_DIR;
            if (!userHomeDir.endsWith(FILE_SEPARATOR)) {
                userHomeDir += FILE_SEPARATOR;
            }
            if (dir.contains(userHomeDir)) {
                return dir.replace(userHomeDir, sourceDir);
            }
        }
        return dir;
    }
Source path is absolute if
1. It starts with absolute path, given absolute path is fixed
2. If absolute path not fixed then {@link File#isAbsolute()}
@param source
@return
commons/src/main/java/io/hyscale/commons/config/SetupConfig.java