private static void startPlugins() {
		List<IPlugin> pluginList = plugins.getPluginList();
		for (IPlugin plugin : pluginList) {
			try {
				// 
				if (plugin instanceof org.myjfinal.plugin.activerecord.ActiveRecordPlugin) {
					org.myjfinal.plugin.activerecord.ActiveRecordPlugin arp = (ActiveRecordPlugin) plugin;
					if (arp.getDevMode() == null) {
						arp.setDevMode(constants.getDevMode());
					}
				}
				
				boolean success = plugin.start();
				if (!success) {
					String message = "Plugin start error :" + plugin.getClass().getName();
					log.error(message);
					throw new RuntimeException(message);
				}
			} catch(Exception e) {
				String message = "Plugin start error: " + plugin.getClass().getName() + ". \n" + e.getMessage();
				log.error(message, e);
				throw new RuntimeException(message, e);
			}
		}
	}