docs: public StreamSource getTransformerStream(String strDocument)
      {
          StreamSource source = null;
          if (strDocument == null)
              strDocument = this.getXSLTDocument();
          if (strDocument == null)
          {
              Reader reader = new StringReader(XSL_CONVERT);
              source = new StreamSource(reader);
              return source;
          }
          if (strDocument.indexOf(':') == -1)
          {   // See if it is a file name
              try {   // First try it as a filename
                  FileReader reader = new FileReader(strDocument);
                  if (reader != null)
                      source = new StreamSource(reader);
              } catch (IOException ex)    {
                  source = null;
              }                    
              if (source == null)
              {       // Now, try it as a URL
                  Task task = null;//this.getTask();
                  //if (task == null)
                  //    task = BaseApplet.getSharedInstance();
                  BaseAppletReference applet = null;
                  if (task instanceof BaseAppletReference)
                      applet = (BaseAppletReference)task;
                  App app = null;
                  if (task != null)
                      app = task.getApplication();
                  URL url = null;
                  if (app != null)
                      url = app.getResourceURL(strDocument, applet);
                  else
                      url = this.getClass().getClassLoader().getResource(strDocument);
  
                  if (url != null)
                  {
                      try {
                          InputStream is = url.openStream();
                          source = new StreamSource(is);
                      } catch (IOException ex)    {
                          source = null;
                      }
                  }
              }
          }
          if (source == null)
          {
              try {
                  URL url = new URL(strDocument);
                  InputStream is = url.openStream();
                  source = new StreamSource(is);
              } catch (IOException ex)    {
                  source = null;
              }
          }
          return source;
      }