public static void initSessionFactoryAdd(String configFile) {
    	try {
            // Create the SessionFactory from resource X
        	URL resource = HibernateUtil.class.getClassLoader().getResource(configFile);
            Configuration configure = new Configuration().configure(resource);
			sessionFactory = configure.buildSessionFactory();
			// TODO: Revisit this, see if I've got latest version of my code in here. Should not need to add manually...
			// configure.addPackage("com.kanawish.voip.domain").addClass(Cdr.class);
        }
        catch (Throwable ex) {
            // Make sure you log the exception, as it might be swallowed
        	logger.error("Initial SessionFactory creation failed." + ex);
            throw new ExceptionInInitializerError(ex);
        }
    }