if (singletonAsyncHandler == null){
boolean perfImpl =
System.getProperty("com.sun.enterprise.callflow.perf", "true").equals("true");
if (perfImpl){
if (traceOn){
logger.log (Level.INFO, "Callflow: Starting Performant " +
"Implementation!. To switch to old implementation" +
" Add system property com.sun.enterprise.admin." +
"callflow.perf=false");
}
singletonAsyncHandler = AsyncHandlerProducer.getInstance();
} else{
if (traceOn){
logger.log (Level.INFO, "Callflow: Starting Old - Non " +
"Performant Implementation!");
}
singletonAsyncHandler = new AsyncHandler ();
}
}
return singletonAsyncHandler;