private List<Path> getAllowedPaths(String configValue) {
        if (configValue != null && !configValue.isEmpty()) {
            List<Path> allowedPaths = new ArrayList<>();

            Arrays.stream(configValue.split(",")).forEach(b -> {
                Path normalisedPath = Paths.get(b).normalize();

                if (!normalisedPath.isAbsolute()) {
                    throw new ConfigException("Path " + normalisedPath + " is not absolute");
                } else if (!Files.exists(normalisedPath)) {
                    throw new ConfigException("Path " + normalisedPath + " does not exist");
                } else {
                    allowedPaths.add(normalisedPath);
                }
            });

            return allowedPaths;
        }

        return null;
    }
Constructs AllowedPaths with a list of Paths retrieved from {@code configValue}.
@param configValue {@code allowed.paths} config value which is a string containing comma separated list of paths
@throws ConfigException if any of the given paths is not absolute or does not exist.
clients/src/main/java/org/apache/kafka/common/config/internals/AllowedPaths.java