@Override
    public void init (AbstractQueue<QueueElement> docq, Properties props) {
        this.docq = docq;
        this.props = props;
        
        outputProperties.setProperty(OutputKeys.INDENT, "yes");
        outputProperties.setProperty(OutputKeys.METHOD, "xml");
        outputProperties.setProperty(OutputKeys.STANDALONE, "no");
        outputProperties.setProperty(OutputKeys.CDATA_SECTION_ELEMENTS, 
                "caption copyright person title country kick content h1 h2 video abstract byline hyperlink");
        outputProperties.setProperty("{http://xml.apache.org/xsl}indent-amount", "4");
        
        try {
            // Prepare the URL.
            String strUrl = null;
            String strOutputOption = null;
            if (props.containsKey("outputOption")) {
                strOutputOption = props.getProperty("outputOption").trim();
            }
            if (strOutputOption != null && !strOutputOption.isEmpty()) {
                strUrl = props.getProperty("destinationURL" + strOutputOption); // specific dest URL
            }
            else {
                strUrl = props.getProperty("destinationURL");                   // default dest URL
            }
            if (strUrl == null) {
                throw new RuntimeException("Required property destinationURL not found.");
            }
            logger.fine("Destination URL=" + strUrl);
            url = new URL(strUrl);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }