// Issues exist with JBoss AS 5 in which the listeners are not started before the attribute is added
// and thus the attributeAdded method never gets called (like it does for JBoss 4.2.x and Tomcat).
Object testDriverServer = sce.getServletContext().getAttribute("TestDriverServer");
if (testDriverSetup == false && testDriverServer != null && testDriverServer instanceof RemoteTestDriverServer )
{
RemoteTestDriverServer remoteDriver = (RemoteTestDriverServer)testDriverServer;
ServletContext servletContext = sce.getServletContext();
setupRemoteDriver(servletContext, remoteDriver);
}
}