else if ( "/".equals( reqUriPath ))
/* else if ( "/".equals( reqUriPath ))
    private void parseRequest()	{	byte[] lineBytes = new byte[4096];	int len;	String line;	try	    {	    // Read the first line of the request.	    len = in.readLine( lineBytes, 0, lineBytes.length );	    if ( len == -1 || len == 0 )		{		problem( "Empty request", SC_BAD_REQUEST );		return;		}	    line = new String( lineBytes, 0, len );	    String[] tokens = Acme.Utils.splitStr( line );	    switch ( tokens.length )		{		case 2:		// Two tokens means the protocol is HTTP/0.9.		reqProtocol = "HTTP/0.9";		oneOne = false;		reqMime = false;		break;		case 3:		reqProtocol = tokens[2];		oneOne = ! reqProtocol.toUpperCase().equals( "HTTP/1.0" );		reqMime = true;		// Read the rest of the lines.		while ( true )		    {		    len = in.readLine( lineBytes, 0, lineBytes.length );		    if ( len == -1 || len == 0 )			break;		    line = new String( lineBytes, 0, len );		    int colonBlank = line.indexOf( ": " );		    if ( colonBlank != -1 )			{			String name = line.substring( 0, colonBlank );			String value = line.substring( colonBlank + 2 );			reqHeaderNames.addElement( name.toLowerCase() );			reqHeaderValues.addElement( value );			}		    }		break;		default:		problem( "Malformed request line", SC_BAD_REQUEST );		return;		}	    reqMethod = tokens[0];	    reqUriPath = tokens[1];	    // Check Host: header in HTTP/1.1 requests.	    if ( oneOne )		{		String host = getHeader( "host" );		if ( host == null )		    {		    problem(			"Host header missing on HTTP/1.1 request",			SC_BAD_REQUEST );		    return;		    }		// !!!		}	    // Split off query string, if any.	    int qmark = reqUriPath.indexOf( '?' );	    if ( qmark != -1 )		{		reqQuery = reqUriPath.substring( qmark + 1 );		reqUriPath = reqUriPath.substring( 0, qmark );		}	    // Decode %-sequences.	    reqUriPath = decode( reqUriPath );	    // do not decode query string, since we do that from	    // helma servlet where we know more about encoding!	    // if (reqQuery != null)	    // 	reqQuery = decode (reqQuery);	    Servlet servlet = (Servlet) serve.registry.get( reqUriPath );	    // maybe the application name without slash? try with slash appended	    if (servlet == null)	    	servlet = (Servlet) serve.registry.get (reqUriPath+"//");	    if (servlet == null)	    	servlet = serve.defaultServlet;	    if ( servlet != null )		runServlet( (HttpServlet) servlet );	    else if ( "/".equals( reqUriPath ))		sendRedirect (serve.props.getProperty ("rootapp", "base"));	    else if ( !reqUriPath.endsWith ("/"))	 	sendRedirect (reqUriPath+"/");	    else // Not found	             sendError (404, "Not Found",		"<p>If you are looking for a specific app, try <tt>/appname</tt>.</p>"+		"<p>If the URL was generated by the Hop's href() method "+	              "check if the <tt>baseURI</tt> property is set correctly in the app's <tt>app.properties</tt> file.</p>");	    }	catch ( IOException e )	    {	    problem( "Reading request: " + e.getMessage(), SC_BAD_REQUEST );	    }	}