*
* @see org.apache.cocoon.pipeline.component.Starter#execute()
*/
public void execute() {
if (this.source == null) {
throw new ProcessingException(this.getClass().getSimpleName() + " has no source.");
}
if (XMLGenerator.this.logger.isDebugEnabled()) {
XMLGenerator.this.logger.debug("Using the URL " + this.source + " to produce SAX events.");
}
try {
XMLUtils.toSax(this.source.openConnection(), XMLGenerator.this.getSAXConsumer());
} catch (IOException e) {
throw new ProcessingException("Can't open connection to " + this.source, e);
}
}