class JsonCnd {

    public static List<JcrNs> toJcrNsList(final @NotNull NamespaceMapping mapping,
                                          final @NotNull NamespaceMappingRequest request) {
        return request.resolveToJcrNs(mapping).stream()
                .flatMap(Result::stream).collect(Collectors.toList());
    }

    private  JsonCnd();

}