class KubeApiClients {

    static String mapUri(Request r) {
        String path = '/' + String.join("/", r.url().pathSegments());
        return removeAll(INSTANCE_ID_PATTERN, removeAll(UUID_PATTERN, path));
    }

}