class FacetedSearchService {

    public String buildSolrQuery(String filter)
    {
        if (!StringUtils.isBlank(filter))
        {
            try
            {
                filter = URLDecoder.decode(filter, SearchConstants.FACETED_SEARCH_ENCODING);
                String solrFiltersSubQuery = createFacetedFiltersSubString(filter);
                return solrFiltersSubQuery;

            }
            catch (UnsupportedEncodingException e)
            {
                log.error("Encoding problem occur while building SOLR query for faceted search with filters: " + filter);
            }
        }

        return filter;
    }

}