class UriUtils {

    public static String trimPathSlashes(String path) {
        // removes beginning and trailing slashes from a URI path.
        return TRIM_PATH_SLASHES_PATTERN.matcher(path).replaceAll("");
    }

    private  UriUtils();

}