SimpleOutputHandler outputHandler = new SimpleOutputHandler( outputStream, false );
BaseRequestHandler requestHandler = new BaseRequestHandler( session, null, outputHandler, null, urlFactory );
try {
categoryChartComponent.validate( session, requestHandler );
categoryChartComponent.handleRequest( outputStream, requestHandler, contentType, parameterProviders );
} catch ( IOException e ) {
e.printStackTrace();
}
}