if (sym.isPackage())
if (sym.isPackage() || sym.isPackageClass()) {
    public void apply() {                if (! checkOutpath())            return;        this.xhtml = new HTMLValidator(getResourceURL(HTML_DTD[0]));        // page with list of packages        createPackageIndexPage();        // class and object pages        ScalaSearch.foreach(root,			    new ScalaSearch.SymFun() {				public void apply(Symbol sym) {				    if (ScalaSearch.isContainer(sym) && 					isDocumented.apply(sym)) { 					createPages(sym); 					if (sym.isPackage()) 					    createContainerIndexPage(sym);				    }				}			    }			    );	if (!noindex) {            // page with index of Scala documented entities.	    createIndexPage();        }        createHelpPage();	// frame description page	createFramePage();        // style sheet        createResource(HTMLPrinter.DEFAULT_STYLESHEET, null);        // script        createResource(HTMLPrinter.DEFAULT_JAVASCRIPT, null);        // launch HTTP server        if (launchServer) {            Servlet servlet = new ScaladocServlet();            Servlet[] servlets = new Servlet[]{ servlet };            //	File directory = new File(global.outpath);            try {                HTTPServer webServer = new HTTPServer(directory, port, servlets);                webServer.start();            }            catch (IOException e) {                System.out.println("Server could not start because of an "                                    + e.getClass());                System.out.println(e);            }            // to prevent going to the next phase (implies checking            // errors when parsing a type after RefCheck)            try {                synchronized(this) { wait(); }            }            catch(InterruptedException e) {                System.err.println("Error while waiting.");                System.exit(0);            }        }    }