class StringUri {

    public static Optional<String> getVersion(String uri) {
        Matcher matcher = VERSION_PATTERN.matcher(uri);

        if (matcher.find()) {
            return Optional.of(matcher.group(0));
        }

        return Optional.empty();
    }

    private  StringUri();

}