case Parser.UNKNOWN_TYPE:
default:
reader = ReaderFactory.newReader( doc, siteContext.getInputEncoding() );
}
}
sink.enableLogging( new PlexusLoggerWrapper( getLogger() ) );
if ( reader == null ) // can happen if velocity throws above
{
throw new RendererException( "Error getting a parser for '" + doc + "'" );
}