Class.forName(javaxSqlDataSourceFactoryClassName)
.newInstance();
} catch (Throwable t) {
NamingException ex = new NamingException
("Could not create resource factory instance");
ex.initCause(t);
throw ex;
}
} else if (ref.getClassName().equals("javax.mail.Session")) {
String javaxMailSessionFactoryClassName =
System.getProperty("javax.mail.Session.Factory",