private static String computePath(String defaultPath, String pathPropertyName) {
        String dir = System.getProperty(pathPropertyName, defaultPath);
        if (dir.startsWith("/") || dir.startsWith("\\")) {
            dir = dir.substring(1);
        }
        if (dir.endsWith("/") || dir.endsWith("\\")) {
            dir = dir.substring(0, dir.length() - 1);
        }
        logger.info("Using {}: {}", pathPropertyName, dir);
        return dir;
    }
Extracts a {@link Map} of docstrings from the given {@link Map} of path to file contents. The result will
generally be used within a {@link DocServicePlugin} for finding docstrings of items.
core/src/main/java/com/linecorp/armeria/server/docs/DocStringExtractor.java