String clazz = System.getProperty("org.apache.james.mime4j.tempStorage");
try {
if (inst != null) {
inst = (TempStorage) Class.forName(clazz).newInstance();
}
} catch (Throwable t) {
log.warn("Unable to create or instantiate TempStorage class '"
+ clazz + "' using SimpleTempStorage instead", t);
}
if (inst == null) {
inst = new SimpleTempStorage();
}
return inst;