class FacetParserHelper extends FacetHelper {

    public static final Facet filters(final JsonNode facet, VarNameAdapter adapter)
        throws InvalidCreateOperationException, InvalidParseOperationException {
        final String name = facet.get(FACETARGS.NAME.exactToken()).asText();
        JsonNode filtersFacetnode = facet.get(FACET.FILTERS.exactToken());

        Map<String, Query> filters = new HashMap<>();
        ArrayNode filtersNode = (ArrayNode) filtersFacetnode.get(FACETARGS.QUERY_FILTERS.exactToken());
        for (JsonNode node : filtersNode) {
            String key = node.get(FACETARGS.NAME.exactToken()).asText();
            JsonNode queryNode = node.get(FACETARGS.QUERY.exactToken());
            final Entry<String, JsonNode> queryItem = JsonHandler.checkUnicity("RootRequest", queryNode);
            Query query = QueryParserHelper.query(queryItem.getKey(), queryItem.getValue(), adapter);
            filters.put(key, query);
        }
        return FacetHelper.filters(name, filters);
    }

    protected  FacetParserHelper();

}