class FilterReader {

    public static List<AbstractMapGeometrySupport> parse(String xmlText)
    {
        List<AbstractMapGeometrySupport> geometries;

        SAXParserFactory factory = SAXParserFactory.newInstance();
        factory.setNamespaceAware(true);
        try
        {
            SAXParser saxParser = factory.newSAXParser();
            FilterHandler handler = new FilterHandler();
            byte[] bytes = xmlText.getBytes(StringUtilities.DEFAULT_CHARSET);
            saxParser.parse(new ByteArrayInputStream(bytes), handler);
            geometries = handler.getGeometries();
        }
        catch (ParserConfigurationException | SAXException | IOException e)
        {
            geometries = Collections.emptyList();
            LOGGER.error(e);
        }

        return geometries;
    }

    private  FilterReader();

}