class JsonCnd {

    static Fun.ThrowingFunction<String, Name> qNameOrResidual(final @NotNull NamePathResolver resolver) {
        return jcrName -> {
            if (TOKEN_RESIDUAL.equals(jcrName)) {
                return QNAME_RESIDUAL;
            } else {
                return resolver.getQName(jcrName);
            }
        };
    }

    private  JsonCnd();

}