/*
 * Created on Jul 19, 2004
 *
 */
package edu.wustl.catissuecore.util.global;

import java.util.ResourceBundle;

/**
 * This class is used to retrieve values of keys from the ApplicationResources.properties file.
 * @author kapil_kaveeshwar
 */
public class HibernateProperties
{
    private static ResourceBundle bundle; 
    
    public static void initBundle(String baseName)
    {
    	bundle = ResourceBundle.getBundle(baseName);
    }
	
	public static String getValue(String theKey)
	{
		return bundle.getString(theKey);
	}
}
@@ -97,27 +97,115 @@
 ava.
-util.ResourceBundle
+io.BufferedInputStream;%0D%0Aimport java.io.File;%0D%0Aimport java.io.FileInputStream;%0D%0Aimport java.util.Properties
 ;%0D%0A%0D
@@ -378,20 +378,17 @@
 ies%0D%0A%7B%0D%0A
-    
+%09
 private 
@@ -398,31 +398,21 @@
 tic 
-ResourceBundle bundle; 
+Properties p;
 %0D%0A  
@@ -483,52 +483,405 @@
    %09
-bundle = ResourceBundle.getBundle(baseName);
+try%0D%0A%09%09%7B%0D%0A%09%09%09File file = new File(baseName);%0D%0A%09%09%09BufferedInputStream stram = new BufferedInputStream(new FileInputStream(file));  %0D%0A%09%09%09p = new Properties();%0D%0A%09%09%09p.load(stram);%0D%0A%09%09%09stram.close();%0D%0A%09%09%7D%0D%0A%09%09catch(Exception exe)%0D%0A%09%09%7B%0D%0A%09%09%09exe.printStackTrace();%0D%0A%09%09%09throw new RuntimeException(%0D%0A%09%09%09%09%22Exception building HibernateProperties: %22 + exe.getMessage(), exe);%0D%0A%09%09%7D%0D%0A    %09%0D%0A    %09//ResourceBundle.
 %0D%0A  
@@ -952,24 +952,21 @@
 urn 
-bundle.getString
+p.getProperty
 (the

Use of properties class for reading resources