public static boolean bootstrap(String propertyFileName, boolean luceneReadOnly)
{
try
{
appInstance.config = new Config(propertyFileName);
appInstance.db = new DB(appInstance.config, "mysqldb");
appInstance.mailer = new Mailer(appInstance.config, "mailer");
appInstance.environment = new Environment(appInstance.config, "env");
appInstance.lucene = new Lucene(new File(appInstance.config.getValue("lucene.directory")), luceneReadOnly);
appInstance.storage = new Storage(appInstance.environment.getStorageDirectory());
return true;