Properties dbProperties = new Properties();
dbProperties = new Properties();
  public void init() throws ServletException  {    InputStream in = null;    poolSize = getPoolSize();    try    {      // Get the properties for the database connection      Properties dbProperties = new Properties();      in = new FileInputStream(Config.DatabaseProperties);      dbProperties.load(in);      // load the driver      Class.forName(dbProperties.getProperty("datasource.classname"));      conn = new Connection[poolSize];      for (int i = 0 ; i < poolSize ; i++)        // Get a connection to the database        conn[i] = DriverManager.getConnection(dbProperties.getProperty("datasource.url"), dbProperties.getProperty("datasource.username"), dbProperties.getProperty("datasource.password"));    }    catch (FileNotFoundException f)     {      throw new UnavailableException("Couldn't find file mysql.properties: " + f+"<br>");    }     catch (IOException io)     {      throw new UnavailableException("Cannot open read mysql.properties: " + io+"<br>");    }     catch (ClassNotFoundException c)     {      throw new UnavailableException("Couldn't load database driver: " + c+"<br>");    }    catch (SQLException s)     {      throw new UnavailableException("Couldn't get database connection: " + s+"<br>");    }    finally    {      try      {        if(in != null) in.close();      }      catch(Exception e)      {      }    }  }