class WikipediaIngestHelper extends ExtendedContentIngestHelper implements TermFrequencyIngestHelperInterface, IndexOnlyIngestHelperInterface {

    @Override
    public Multimap<String,NormalizedContentInterface> getEventFields(RawRecordContainer event) {
        HashMultimap<String,String> fields = HashMultimap.create();
        
        // Get the raw data
        String data = new String(event.getRawData());
        // Wrap the data
        StringReader reader = new StringReader(data);
        InputSource source = new InputSource(reader);
        
        // Create an XML parser
        try {
            WikipediaContentHandler handler = new WikipediaContentHandler(fields, ignoreFields);
            XMLReader parser = XMLReaderFactory.createXMLReader();
            parser.setFeature("http://apache.org/xml/features/disallow-doctype-decl", false);
            parser.setFeature("http://xml.org/sax/features/external-general-entities", false);
            parser.setFeature("http://xml.org/sax/features/external-parameter-entities", false);
            parser.setContentHandler(handler);
            parser.parse(source);
        } catch (Exception e) {
            // If error, return empty results map.
            log.error("Error processing Wikipedia XML document", e);
            event.addError(RawDataErrorNames.FIELD_EXTRACTION_ERROR);
        }
        
        extractWikipediaTypeInformation(event, fields);
        
        return normalize(fields);
    }

}