public static synchronized void initialization(final ServletContext ctx)
     throws InstantiationException, IllegalAccessException {
   if (APP_MGR == null) {
     final Class<? extends ApplicationManager> a = Configuration.get().getAppManager();
     LOG.info("Initializing Application Manager [" + a + "] ...");
     APP_MGR = a.newInstance();
     APP_MGR.init(ctx, Configuration.get().getAppManagerParas());
     ctx.setAttribute(ServletContextConstants.APP_MANAGER, APP_MGR);
     if (APP_MGR instanceof ApplicationMonitor) {
       ctx.setAttribute(ServletContextConstants.APP_MONITOR, APP_MGR);
     }
   }
 }
 public boolean isMrcpServerConnected() {
   try {
     final MrcpClient client =
         _mrcpFactory.createMrcpClient(
             new Endpoint("", 1, null),
             Configuration.get().getMediaAddress(),
             Configuration.get().getMediaServerPort(),
             new Properties());
     client.getAsrSession();
     client.getAsrSession().unjoin();
     client.getAsrSession().disconnect();
     client.getAsrSession().invalidate();
     return true;
   } catch (final Throwable t) {
     return false;
   }
 }
 public static void load(Configuration c, ServletContext ctx) throws Exception {
   final Class<? extends ApplicationManager> a = c.getAppManager();
   Method m = a.getMethod("initialization", ServletContext.class);
   m.invoke(null, ctx);
 }