private static void startHttpServer(String s, String s1)
    {
        Class class1;
        try
        {
            class1 = Class.forName(s);
        }
        catch(ClassNotFoundException classnotfoundexception)
        {
            throw new UserError("Could not find http server \"" + s + "\".");
        }
        AliceCompatibleHttpServer alicecompatiblehttpserver;
        try
        {
            alicecompatiblehttpserver = (AliceCompatibleHttpServer)class1.newInstance();
        }
        catch(InstantiationException instantiationexception)
        {
            throw new UserError("Couldn't instantiate http server \"" + s + "\".");
        }
        catch(IllegalAccessException illegalaccessexception)
        {
            throw new DeveloperError("The constructor for \"" + s + "\" or the class itself is not available.");
        }
        catch(ClassCastException classcastexception)
        {
            throw new DeveloperError("\"" + s + "\" is not an implementation of AliceCompatibleHttpServer.");
        }
        if(s1 != null)
            try
            {
                alicecompatiblehttpserver.configure(s1);
            }
            catch(IOException ioexception)
            {
                throw new UserError("Could not find \"" + s1 + "\".");
            }
        BotProcesses.start(alicecompatiblehttpserver, "http server");
    }