ContainerManager.getInstance().getContainer().addContainerListener(new SimpleContainerLogComponent());
// register all components
PackagingManager.getInstance().registerPackager(new StateOnlyPackager());
ResourceManager.getInstance().registerResourceProvider(new HTTPProvider());
// P2PManager.getInstance().registerP2PNetwork(new PidginP2P());
if ( !Config.getInstance().getLog_file().isEmpty() ) {
try{
P2PManager.getInstance().registerP2PNetwork((P2PNetwork)Class.forName(config.getP2p_protocol()).newInstance());
}catch (Throwable e) {