ds.setMaxSize(Integer.parseInt(get(ref, "MaxSize", "0")));
ds.setMaxSize(Integer.parseInt(get(ref, "MaxSize", "10")));
   public synchronized Object getObjectInstance(Object obj, Name name, Context ctx, Hashtable env) throws Exception   {      if (cfs.containsKey(name))       {         return cfs.get(name);      } // end of if ()      FBWrappingDataSource ds = new FBWrappingDataSource();      //This follows the example given for Catalina.       //see http://jakarta.apache.org/tomcat/tomcat-4.0-doc/jndi-resources-howto.html      Reference ref = (Reference)obj;      String dbName = (String)ref.get("DatabaseName").getContent();      if (dbName == null)       {         throw new IllegalArgumentException("You must supply a db name");            } // end of if ()      ds.setDatabaseName(dbName);      ds.setUser(get(ref, "User", null));      ds.setPassword(get(ref, "Password", null));      ds.setMinSize(Integer.parseInt(get(ref, "MinSize", "0")));      ds.setMaxSize(Integer.parseInt(get(ref, "MaxSize", "0")));      ds.setBlockingTimeout(Integer.parseInt(get(ref, "BlockingTimeout", "5000")));      ds.setIdleTimeoutMinutes(Integer.parseInt(get(ref, "IdleTimeoutMinutes", "30")));      ds.setPooling(true);      cfs.put(name, ds);      return ds;   }