class XmlExtractorFactory implements IExtractorFactory<StreamConnector> {

    @Override
    public Extractor createExtractor(StreamConnector connector, ExtractorModel model) {
        try {
            NamespaceContext namespaceContext = getNamespaceContext(model);
            XPathExpression expression = getXPathExpression(model, namespaceContext);
            return new XmlExtractor(connector, mapToXmlAttributes(model.getAttributes(), namespaceContext), expression);
        } catch (XPathExpressionException e) {
            throw new LmRuntimeException(e);
        }
    }

    public  XmlExtractorFactory();

}