public void write(OutputStream outStream) throws IOException, WebApplicationException
{
ExoContainer container = ExoContainerContext.getCurrentContainer();
TRAXTemplatesService templatesService =
(TRAXTemplatesService)container.getComponentInstanceOfType(TRAXTemplatesServiceImpl.class);
try
{
TRAXTransformer transformer = null;
if (schemeName != null)
{
TRAXTemplates t = templatesService.getTemplates(schemeName);
if (t == null)
{
String msg = "Template " + schemeName + " not found.";
throw new IllegalArgumentException(msg);
}